home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 86
/
(Vol 86) My Disc.iso
/
Games
/
salaodebeleza_229.swf
/
scripts
/
frame_1
/
DoAction.as
Wrap
Text File
|
2009-04-21
|
107KB
|
4,167 lines
function addNewLevel()
{
levelCounter++;
_root.createEmptyMovieClip("drawLevel" + levelCounter,levelCounter);
currentDrawLevel = _root["drawLevel" + levelCounter];
}
function cleanOffNail()
{
if(nailObjects[curNail] != null)
{
nailObjects[curNail].removeMovieClip();
}
if(nailObjectsDouble[curNail] != null)
{
nailObjectsDouble[curNail].removeMovieClip();
}
if(contourObjects[curNail] != null)
{
contourObjects[curNail].removeMovieClip();
}
if(highlightObjects[curNail] != null)
{
highlightObjects[curNail].removeMovieClip();
}
if(tipObjects[curNail] != null)
{
tipObjects[curNail].removeMovieClip();
}
}
function setNailBG()
{
var _loc1_ = _root;
cleanOffNail();
levelCounter++;
if(polishApplied[curNail] != -1)
{
if(polishApplied[curNail] == 3)
{
drawSemiTransparentNail();
if(stickers[curNail] != -1)
{
levelCounter++;
_loc1_["s_" + curNail].swapDepths(levelCounter);
}
}
else
{
curY = Number(nailCoordinates[curNail][1]) + Number(nailLength[3][curNail]) - Number(nailLength[nailShape[curNail]]) - 5;
curX = Number(nailCoordinates[curNail][0]);
if(curNail < 5)
{
curX -= 10;
}
else
{
curY += 13;
curX += 10;
}
_loc1_.attachMovie("c_" + polishGroup[curNail] + "_" + polishApplied[curNail],"c_" + polishApplied[curNail] + levelCounter,levelCounter,{_x:curX,_y:curY});
if(curNail < 5)
{
rotation = 25;
}
else
{
rotation = 335;
}
_loc1_["c_" + polishApplied[curNail] + levelCounter]._rotation = rotation;
addNewLevel();
maskingLevel = levelCounter - 1;
_loc1_["c_" + polishApplied[curNail] + maskingLevel].setMask(currentDrawLevel);
addr404:
drawNail();
levelCounter++;
if(stickers[curNail] != -1)
{
_loc1_["s_" + curNail].swapDepths(levelCounter);
levelCounter++;
}
if(mcBrushMix != null)
{
mcBrushMix.swapDepths(levelCounter);
}
else if(mcBrush != null)
{
mcBrush.swapDepths(levelCounter);
}
}
}
drawNailPad();
levelCounter++;
_loc1_.createEmptyMovieClip("compaundDrawLevel" + levelCounter,levelCounter);
compaundDrawLevel = _loc1_["compaundDrawLevel" + levelCounter];
curY = Number(nailCoordinates[curNail][1]) + Number(nailLength[3][curNail]) - Number(nailLength[nailShape[curNail]]);
curX = Number(nailCoordinates[curNail][0]);
if(curNail < 5)
{
curX -= 13;
curY -= 5;
}
else
{
curX += 11;
curY += 11;
}
var _loc2_ = 2;
if(curNail < 5)
{
rotation = 25;
}
else
{
rotation = 335;
}
if(mixedColors[curNail] != -1)
{
compaundDrawLevel.attachMovie("red_bg","red_bg",_loc2_,{_x:curX,_y:curY});
var _loc3_ = new Color(compaundDrawLevel.red_bg);
_loc3_.setRGB(mixingColorVals[mixedColors[curNail]]);
compaundDrawLevel.red_bg._rotation = rotation;
}
if(mixedBackgrounds[curNail] != -1)
{
_loc2_ = _loc2_ + 1;
compaundDrawLevel.attachMovie("p_" + mixedBackgrounds[curNail],"p_" + mixedBackgrounds[curNail],_loc2_,{_x:curX,_y:curY});
compaundDrawLevel["p_" + mixedBackgrounds[curNail]]._rotation = rotation;
}
addNewLevel();
compaundDrawLevel.setMask(currentDrawLevel);
§§goto(addr404);
}
function drawNail()
{
var _loc2_ = _root;
var _loc1_ = nailShape;
if(curNail > 4)
{
curY = Number(nailCoordinates[curNail][1]) + Number(nailLength[3][curNail]) - Number(nailLength[_loc1_][curNail]);
curX = Number(nailCoordinates[curNail][0]) + Number(nailWidth[3][curNail - 5]) - Number(nailWidth[_loc1_][curNail - 5]);
}
else
{
curY = Number(nailCoordinates[curNail][1]) + Number(nailLength[3][curNail]) - Number(nailLength[nailShape[curNail]]);
curX = Number(nailCoordinates[curNail][0]);
}
currentDrawLevel.attachMovie("nail_" + curNail + "_" + nailShape,"nail_" + curNail,levelCounter,{_x:curX,_y:curY});
nailObjects[curNail] = currentDrawLevel["nail_" + curNail];
levelCounter++;
_loc2_.attachMovie("hl_" + curNail + "_" + nailShape,"hl_" + curNail,levelCounter,{_x:curX,_y:curY});
highlightObjects[curNail] = _loc2_["hl_" + curNail];
levelCounter++;
_loc2_.attachMovie("contour_" + curNail + "_" + nailShape,"contour_" + curNail,levelCounter,{_x:curX,_y:curY});
contourObjects[curNail] = _loc2_["contour_" + curNail];
levelCounter++;
if(curNail <= 4)
{
curY -= Number(nailLength[_loc1_][curNail]);
curX += Number(nailWidth[_loc1_][curNail] / 2);
}
_loc2_.attachMovie("sparkle","sparkle" + levelCounter,levelCounter,{_x:curX,_y:curY});
}
function drawNailPad()
{
levelCounter++;
if(curNail > 4)
{
var _loc1_ = nailShape;
curY = Number(nailCoordinates[curNail][1]) + Number(nailLength[3][curNail]) - Number(nailLength[_loc1_][curNail]);
curX = Number(nailCoordinates[curNail][0]) + Number(nailWidth[3][curNail - 5]) - Number(nailWidth[_loc1_][curNail - 5]);
}
else
{
curY = Number(nailCoordinates[curNail][1]) + Number(nailLength[3][curNail]) - Number(nailLength[nailShape[curNail]]);
curX = Number(nailCoordinates[curNail][0]);
}
_root.attachMovie("nail_" + curNail + "_" + nailShape,"nailPad_" + curNail,levelCounter,{_x:curX,_y:curY});
nailObjectsDouble[curNail] = _root["nailPad_" + curNail];
}
function drawSemiTransparentNail()
{
drawNailPad();
addNewLevel();
currentDrawLevel.attachMovie("nail_" + curNail + "_" + nailShape,"nail_" + curNail,levelCounter,{_x:curX,_y:curY});
createSemiTrasparentColor();
theOldColor = new Color(currentDrawLevel["nail_" + curNail]);
theOldColor.setTransform(semiTransparentTransform);
nailObjects[curNail] = currentDrawLevel["nail_" + curNail];
levelCounter++;
currentDrawLevel.attachMovie("tip_" + curNail + "_" + nailShape,"tip_" + curNail,levelCounter,{_x:curX,_y:curY});
tipObjects[curNail] = currentDrawLevel["tip_" + curNail];
levelCounter++;
currentDrawLevel.attachMovie("hl_" + curNail + "_" + nailShape,"hl_" + curNail,levelCounter,{_x:curX,_y:curY});
highlightObjects[curNail] = currentDrawLevel["hl_" + curNail];
levelCounter++;
currentDrawLevel.attachMovie("contour_" + curNail + "_" + nailShape,"contour_" + curNail,levelCounter,{_x:curX,_y:curY});
contourObjects[curNail] = currentDrawLevel["contour_" + curNail];
var _loc1_ = nailShape;
if(curNail > 4)
{
curY = Number(nailCoordinates[curNail][1]) + Number(nailLength[3][curNail]) - Number(nailLength[_loc1_][curNail]);
curX = Number(nailCoordinates[curNail][0]) + Number(nailWidth[3][curNail - 5]) - Number(nailWidth[_loc1_][curNail - 5]);
}
if(curNail <= 4)
{
curY -= Number(nailLength[_loc1_][curNail]);
curX += Number(nailWidth[_loc1_][curNail] / 2);
}
levelCounter++;
_root.attachMovie("sparkle","sparkle" + levelCounter,levelCounter,{_x:curX,_y:curY});
}
function createSemiTrasparentColor()
{
var _loc1_ = polishGroup[curNail];
semiTransparentTransform = new Object();
semiTransparentTransform.ra = 50;
semiTransparentTransform.rb = colorGroupVals[_loc1_][0];
semiTransparentTransform.ga = 40;
semiTransparentTransform.gb = colorGroupVals[_loc1_][1];
semiTransparentTransform.ba = 12;
semiTransparentTransform.bb = colorGroupVals[_loc1_][2];
semiTransparentTransform.aa = 20;
semiTransparentTransform.ab = 20;
}
function handleClickOnFinger()
{
var _loc2_ = this;
var _loc3_ = _root;
if(mcRing != null)
{
rotation = 0;
if(curFinger > 4)
{
rotation = 300;
}
levelCounter++;
_loc3_.attachMovie("ring_" + curRing,"r_" + ringsCounter,levelCounter,{_x:ringCoordinates[curFinger][0],_y:ringCoordinates[curFinger][1]});
_loc3_["r_" + ringsCounter]._rotation = rotation;
if(curFinger == 0 || curFinger == 4 || curFinger == 5 || curFinger == 9)
{
_loc3_["r_" + ringsCounter]._xscale = 80;
_loc3_["r_" + ringsCounter]._yscale = 80;
}
rings.push("ring_" + curRing);
ringNames.push("r_" + ringsCounter);
var tmp = new Array(ringCoordinates[curFinger][0],ringCoordinates[curFinger][1]);
choosenRingsCoordinates.push(tmp);
choosenRingsFingerPosition.push(curFinger);
releaseRing();
_loc3_["r_" + ringsCounter].onPress = function()
{
levelCounter++;
this.swapDepths(levelCounter);
if(mcRing == null)
{
this.startDrag(false);
}
else
{
handleClickOnFinger();
}
};
_loc3_["r_" + ringsCounter].onRelease = function()
{
var _loc2_ = this;
_loc2_.stopDrag();
updateAfterEvent();
var _loc3_ = _root["finger_" + curFinger];
if(_loc2_.hitTest(recycle_bin) || !_loc3_.hitTest(_root._xmouse,_root._ymouse,true))
{
var _loc1_ = 0;
while(_loc1_ < ringNames.length)
{
if(_loc2_._name == ringNames[_loc1_])
{
ringNames.splice(_loc1_,1);
rings.splice(_loc1_,1);
choosenRingsCoordinates.splice(_loc1_,1);
choosenRingsFingerPosition.splice(_loc1_,1);
cur_Sound = new Sound();
cur_Sound.attachSound("trash.mp3");
cur_Sound.start();
break;
}
_loc1_ = _loc1_ + 1;
}
_loc2_.removeMovieClip();
}
else
{
_loc1_ = 0;
while(_loc1_ < ringNames.length)
{
if(_loc2_._name == ringNames[_loc1_])
{
choosenRingsCoordinates[_loc1_][0] = _loc2_._x;
choosenRingsCoordinates[_loc1_][1] = _loc2_._y;
break;
}
_loc1_ = _loc1_ + 1;
}
}
};
ringsCounter++;
}
}
function handleClickOnNail()
{
var _loc1_ = _root;
if(mcBrush != null)
{
polishApplied[curNail] = curPolish;
polishGroup[curNail] = curColorGroup;
mixedBackgrounds[curNail] = -1;
mixedColors[curNail] = -1;
setNailBG();
levelCounter++;
mcBrush.swapDepths(levelCounter);
cur_Sound = new Sound();
cur_Sound.attachSound("nail_color.mp3");
cur_Sound.start();
}
else if(mcBrushMix != null)
{
polishApplied[curNail] = -1;
polishGroup[curNail] = -1;
mixedBackgrounds[curNail] = curMixedBG;
mixedColors[curNail] = curMixedColor;
setNailBG();
cur_Sound = new Sound();
cur_Sound.attachSound("nail_color.mp3");
cur_Sound.start();
}
else if(mcRemover != null)
{
if(stickers[curNail] != -1)
{
_loc1_["s_" + curNail].removeMovieClip();
stickers[curNail] = -1;
}
cleanOffNail();
polishApplied[curNail] = -1;
polishGroup[curNail] = -1;
mixedBackgrounds[curNail] = -1;
mixedColors[curNail] = -1;
addNewLevel();
drawNail();
cur_Sound = new Sound();
cur_Sound.attachSound("remover.mp3");
cur_Sound.start();
levelCounter++;
mcRemover.swapDepths(levelCounter);
}
else if(mcSticker != null)
{
cur_Sound = new Sound();
cur_Sound.attachSound("bottle_rollover.mp3");
cur_Sound.start();
if(stickers[curNail] != -1)
{
_loc1_["s_" + curNail].removeMovieClip();
}
if(curNail < 4)
{
rotation = 25;
}
else if(curNail == 4)
{
rotation = 50;
}
else if(curNail == 5)
{
rotation = 310;
}
else
{
rotation = 335;
}
levelCounter++;
_loc1_.attachMovie("s_" + curSticker,"s_" + curNail,levelCounter,{_x:stickerCoordinates[curNail][0],_y:stickerCoordinates[curNail][1]});
_loc1_["s_" + curNail]._rotation = rotation;
stickers[curNail] = curSticker;
var _loc2_ = "s_" + curNail;
_loc1_[_loc2_].gotoAndStop(1);
}
}
function handleNailShapeChange()
{
i = 0;
while(i < 10)
{
curNail = i;
setNailBG();
i++;
}
}
function handleClickOnHands(theHand)
{
if(mcBracelet != null)
{
releaseBracelet();
if(bracelets[theHand] != -1)
{
_root[bracelets[theHand]].removeMovieClip();
bracelets[theHand] = -1;
customBracelets[theHand] = -100;
braceletNumbers[theHand] = -1;
choosenBraceletCoordinates[theHand][0] = -1;
choosenBraceletCoordinates[theHand][1] = -1;
}
levelCounter++;
if(customBraceletClicked)
{
rotation = 330;
if(theHand == 0)
{
rotation = 30;
}
var beadCoord_tmp;
var braceletCoord_tmp;
var _loc3_ = undefined;
var _loc1_ = 0;
while(_loc1_ < customBracelet.length)
{
if(customBracelet[_loc1_] == curBracelet)
{
_loc3_ = customBeads[_loc1_];
beadCoord_tmp = customBeadsCoordinates[_loc1_];
braceletCoord_tmp = customBraceletCoordinates[_loc1_];
break;
}
_loc1_ = _loc1_ + 1;
}
if(curBracelet != -1)
{
_root.attachMovie("custom_bracelet_" + curBracelet,"br_" + levelCounter,levelCounter,{_x:createdBraceletCoordinates[theHand][0],_y:createdBraceletCoordinates[theHand][1]});
}
else
{
_root.createEmptyMovieClip("br_" + levelCounter,levelCounter);
_root["br_" + levelCounter]._x = createdBraceletCoordinates[theHand][0];
_root["br_" + levelCounter]._y = createdBraceletCoordinates[theHand][1];
}
bracelets[theHand] = "br_" + levelCounter;
customBracelets[theHand] = curBracelet;
var _loc2_ = 0;
while(_loc2_ < _loc3_.length)
{
curX = Number(beadCoord_tmp[_loc2_][0] - braceletCoord_tmp[0]);
curY = Number(beadCoord_tmp[_loc2_][1] - braceletCoord_tmp[1]);
levelCounter++;
_root[bracelets[theHand]].attachMovie("bead_" + _loc3_[_loc2_],"createdBeads_" + _loc2_ + levelCounter,levelCounter,{_x:curX,_y:curY});
_loc2_ = _loc2_ + 1;
}
choosenBraceletCoordinates[theHand][0] = createdBraceletCoordinates[theHand][0];
choosenBraceletCoordinates[theHand][1] = createdBraceletCoordinates[theHand][1];
_root[bracelets[theHand]]._rotation = rotation;
}
else
{
rotation = 0;
if(theHand == 0)
{
rotation = 60;
}
_root.attachMovie("bracelet_" + curBracelet,"br_" + curBracelet + "_" + levelCounter,levelCounter,{_x:braceletCoordinates[theHand][0],_y:braceletCoordinates[theHand][1]});
bracelets[theHand] = "br_" + curBracelet + "_" + levelCounter;
braceletNumbers[theHand] = curBracelet;
choosenBraceletCoordinates[theHand][0] = braceletCoordinates[theHand][0];
choosenBraceletCoordinates[theHand][1] = braceletCoordinates[theHand][1];
_root[bracelets[theHand]]._rotation = rotation;
}
_root[bracelets[theHand]].onRelease = function()
{
var _loc1_ = this;
_loc1_.stopDrag();
if(_loc1_.hitTest(recycle_bin))
{
bracelets[theHand] = -1;
customBracelets[theHand] = -100;
braceletNumbers[theHand] = -1;
choosenBraceletCoordinates[theHand][0] = -1;
choosenBraceletCoordinates[theHand][1] = -1;
_loc1_.removeMovieClip();
cur_Sound = new Sound();
cur_Sound.attachSound("trash.mp3");
cur_Sound.start();
}
else
{
choosenBraceletCoordinates[theHand][0] = _loc1_._x;
choosenBraceletCoordinates[theHand][1] = _loc1_._y;
}
};
_root[bracelets[theHand]].onPress = function()
{
if(mcBracelet == null)
{
this.startDrag(false);
}
else
{
handleClickOnHands(theHand);
}
};
}
}
function handleRollOVerPolish(theGroup, thePolish)
{
var _loc3_ = theGroup;
if(mcBottle_Popup._visible != true)
{
if(mcBrush == null)
{
var _loc1_ = undefined;
if(curColorGroup != _loc3_)
{
_loc1_ = "polish_" + curColorGroup;
_root[_loc1_].gotoAndStop(1);
}
curColorGroup = _loc3_;
curPolish = thePolish;
_loc1_ = "polish_" + _loc3_;
var _loc2_ = thePolish + 2;
_root[_loc1_].gotoAndStop(_loc2_);
}
}
}
function handleClickOnPolish(theGroup, thePolish)
{
var _loc1_ = _root;
if(mcBottle_Popup._visible != true)
{
polish_explanations._visible = false;
var _loc2_ = undefined;
if(curColorGroup != theGroup)
{
_loc2_ = "polish_" + curColorGroup;
_loc1_[_loc2_].gotoAndStop(1);
}
curColorGroup = theGroup;
curPolish = thePolish;
_loc2_ = "polish_" + curColorGroup;
var _loc3_ = thePolish + 6;
_loc1_[_loc2_].gotoAndStop(_loc3_);
cur_Sound = new Sound();
cur_Sound.attachSound("color_click.mp3");
cur_Sound.start();
releaseRemover();
releaseSticker();
releaseRing();
if(mcBrush == null)
{
levelCounter++;
_loc1_.attachMovie("brush","mcBrush",levelCounter,{_x:_loc1_._xmouse,_y:0});
mcBrush.onMouseMove = function()
{
var _loc1_ = this;
_loc1_._x = _root._xmouse;
_loc1_._y = _root._ymouse - _loc1_._height;
updateAfterEvent();
};
}
}
}
function getSticker()
{
var _loc1_ = _root;
var _loc2_ = this;
levelCounter++;
_loc1_.attachMovie("s_" + curSticker,"mcSticker",levelCounter,{_x:_loc1_._xmouse - 7,_y:_loc1_._ymouse - 13});
mcSticker.onMouseMove = function()
{
var _loc1_ = this;
_loc1_._x = _root._xmouse - _loc1_._width / 2;
_loc1_._y = _root._ymouse - _loc1_._height / 2;
updateAfterEvent();
};
}
function getBracelet()
{
if(mcBottle_Popup._visible != true)
{
levelCounter++;
if(customBraceletClicked)
{
if(curBracelet != -1)
{
_root.attachMovie("custom_bracelet_" + curBracelet,"mcBracelet",levelCounter,{_x:_root._xmouse - 46,_y:_root._ymouse - 40});
}
else
{
_root.createEmptyMovieClip("mcBracelet",levelCounter);
_root.mcBracelet._x = _root._xmouse - 46;
_root.mcBracelet._y = _root._ymouse - 40;
}
var beadCoord_tmp;
var braceletCoord_tmp;
var _loc3_ = undefined;
var _loc1_ = 0;
while(_loc1_ < customBracelet.length)
{
if(customBracelet[_loc1_] == curBracelet)
{
_loc3_ = customBeads[_loc1_];
beadCoord_tmp = customBeadsCoordinates[_loc1_];
braceletCoord_tmp = customBraceletCoordinates[_loc1_];
break;
}
_loc1_ = _loc1_ + 1;
}
var _loc2_ = 0;
while(_loc2_ < _loc3_.length)
{
curX = Number(beadCoord_tmp[_loc2_][0] - braceletCoord_tmp[0]);
curY = Number(beadCoord_tmp[_loc2_][1] - braceletCoord_tmp[1]);
levelCounter++;
_root.mcBracelet.attachMovie("bead_" + _loc3_[_loc2_],"createdBeads_" + _loc2_ + levelCounter,levelCounter,{_x:curX,_y:curY});
_loc2_ = _loc2_ + 1;
}
}
else
{
_root.attachMovie("bracelet_" + curBracelet,"mcBracelet",levelCounter,{_x:_root._xmouse - 46,_y:_root._ymouse - 40});
}
mcBracelet.onMouseMove = function()
{
var _loc1_ = this;
_loc1_._x = _root._xmouse - _loc1_._width / 2;
_loc1_._y = _root._ymouse - _loc1_._height / 2;
updateAfterEvent();
};
}
}
function getRing()
{
var _loc1_ = _root;
if(mcBottle_Popup._visible != true)
{
levelCounter++;
_loc1_.attachMovie("ring_" + curRing,"mcRing",levelCounter,{_x:_loc1_._xmouse - 15,_y:_loc1_._ymouse - 15});
mcRing.onMouseMove = function()
{
this._x = _root._xmouse - 15;
this._y = _root._ymouse - 15;
updateAfterEvent();
};
}
}
function changeHandsColor()
{
if(mcBottle_Popup._visible != true)
{
releaseAll();
var _loc1_ = new Color(bg.hands);
_loc1_.setRGB(handsColors[curHandsColor]);
cur_Sound = new Sound();
cur_Sound.attachSound("color_click.mp3");
cur_Sound.start();
}
}
function releaseTheBrush()
{
if(mcBrush != null)
{
mcBrush.removeMovieClip();
}
if(mcBrushMix != null)
{
mcBrushMix.removeMovieClip();
}
}
function releaseRemover()
{
if(mcRemover != null)
{
mcRemover.removeMovieClip();
}
}
function releaseSticker()
{
if(mcSticker != null)
{
mcSticker.removeMovieClip();
}
}
function releaseRing()
{
if(mcRing != null)
{
mcRing.removeMovieClip();
}
}
function releasePolishes()
{
var _loc2_ = _root;
var the_group;
var _loc1_ = 0;
while(_loc1_ < nPolishes)
{
the_group = "polish_" + _loc1_;
if(_loc2_[the_group] != null)
{
_loc2_[the_group].gotoAndStop(1);
}
var _loc3_ = "color_group_" + _loc1_;
if(_loc2_[_loc3_] != null)
{
_loc2_[_loc3_]._visible = false;
}
_loc1_ = _loc1_ + 1;
}
}
function releaseBracelet()
{
if(mcBracelet != null)
{
mcBracelet.removeMovieClip();
}
}
function releaseAll()
{
releaseTheBrush();
releaseRemover();
releaseSticker();
releaseRing();
releasePolishes();
releaseBracelet();
customBraceletClicked = false;
cap._visible = true;
levelCounter++;
cap.swapDepths(levelCounter);
stickers_roll.gotoAndStop(1);
}
function displayPolishExplanation(num)
{
var _loc2_ = num;
if(polishExplanationsDisplayed[_loc2_] == -1)
{
polishExplanationsDisplayed[_loc2_] = 1;
var _loc3_ = "polish_" + _loc2_;
var _loc1_ = _root[_loc3_];
polish_explanations._visible = true;
polish_explanations._x = _loc1_._x;
polish_explanations._y = _loc1_._y + Number(15);
levelCounter++;
polish_explanations.swapDepths(levelCounter);
var delta = 0;
displayInterval = setInterval(function()
{
delta++;
if(delta == 20)
{
clearInterval(displayInterval);
polish_explanations._visible = false;
}
}
,100);
}
}
function colorPressed(num)
{
var _loc2_ = num;
var _loc3_ = _root;
if(mcBottle_Popup._visible != true)
{
releaseAll();
var _loc1_ = undefined;
displayPolishExplanation(_loc2_);
if(curColorGroup != _loc2_)
{
_loc1_ = "color_group_" + curColorGroup;
if(_loc3_[_loc1_] != null)
{
_loc3_[_loc1_]._visible = false;
}
}
_loc1_ = "color_group_" + _loc2_;
_loc3_[_loc1_]._visible = true;
curColorGroup = _loc2_;
}
}
function colorRolledOver(num)
{
var _loc2_ = num;
var _loc3_ = _root;
if(mcBottle_Popup._visible != true)
{
if(mcBrush == null)
{
if(curColorGroup != _loc2_)
{
var _loc1_ = "color_group_" + curColorGroup;
if(_loc3_[_loc1_] != null)
{
_loc3_[_loc1_]._visible = false;
}
cur_Sound = new Sound();
cur_Sound.attachSound("bottle_rollover.mp3");
cur_Sound.start();
_loc1_ = "color_group_" + _loc2_;
_loc3_[_loc1_]._visible = true;
curColorGroup = _loc2_;
}
}
}
}
function showCustomBracelet()
{
var _loc2_ = _root;
if(new_label != null)
{
new_label._visible = true;
}
var _loc1_ = 0;
while(_loc1_ < nBraceletSets)
{
_loc2_["bracelet_set_" + _loc1_]._visible = false;
_loc1_ = _loc1_ + 1;
}
_loc1_ = 0;
while(_loc1_ < customBracelet.length)
{
customBraceletObjects[_loc1_]._visible = false;
_loc1_ = _loc1_ + 1;
}
customBraceletObjects[curCustomBracelet2Show]._visible = true;
}
function showBracelet()
{
var _loc2_ = _root;
if(new_label != null)
{
new_label._visible = false;
}
var _loc1_ = 0;
while(_loc1_ < nBraceletSets)
{
_loc2_["bracelet_set_" + _loc1_]._visible = false;
_loc1_ = _loc1_ + 1;
}
_loc1_ = 0;
while(_loc1_ < customBracelet.length)
{
customBraceletObjects[_loc1_]._visible = false;
_loc1_ = _loc1_ + 1;
}
_loc2_["bracelet_set_" + curBraceletSet]._visible = true;
}
function openMixPopUp()
{
var _loc1_ = _root;
releaseAll();
_loc1_.mcBottle_Popup._visible = true;
levelCounter++;
mcBottle_Popup.swapDepths(levelCounter);
curMixedBG = -1;
curMixedColor = -1;
if(_loc1_.bottleBG_small != null)
{
_loc1_.bottleBG_small.removeMovieClip();
}
if(_loc1_.small_p != null)
{
_loc1_.small_p.removeMovieClip();
}
if(mcBottle_Popup.bottleBG_big != null)
{
mcBottle_Popup.bottleBG_big.removeMovieClip();
}
if(mcBottle_Popup.big_p != null)
{
mcBottle_Popup.big_p.removeMovieClip();
}
if(premium == 0)
{
showRegistrationDialog();
}
}
function drawSmallBottle()
{
var _loc1_ = _root;
if(_loc1_.bottleBG_small != null)
{
_loc1_.bottleBG_small.removeMovieClip();
}
if(_loc1_.small_p != null)
{
_loc1_.small_p.removeMovieClip();
}
if(curMixedColor != -1)
{
levelCounter++;
_loc1_.attachMovie("bottleBG_small","bottleBG_small",levelCounter,{_x:294,_y:66});
var _loc2_ = new Color(_loc1_.bottleBG_small);
_loc2_.setRGB(mixingColorVals[curMixedColor]);
}
if(curMixedBG != -1)
{
levelCounter++;
_loc1_.attachMovie("small_p_" + curMixedBG,"small_p",levelCounter,{_x:294,_y:66});
}
levelCounter++;
_loc1_.attachMovie("bottle_small","bottle_small",levelCounter,{_x:292,_y:30});
}
function drawBigBottle()
{
if(mcBottle_Popup.bottleBG_big != null)
{
mcBottle_Popup.bottleBG_big.removeMovieClip();
}
if(mcBottle_Popup.big_p != null)
{
mcBottle_Popup.big_p.removeMovieClip();
}
if(curMixedColor != -1)
{
levelCounter++;
mcBottle_Popup.attachMovie("bottleBG_big","bottleBG_big",levelCounter,{_x:-131,_y:-43});
var _loc1_ = new Color(mcBottle_Popup.bottleBG_big);
_loc1_.setRGB(mixingColorVals[curMixedColor]);
}
if(curMixedBG != -1)
{
levelCounter++;
mcBottle_Popup.attachMovie("big_p_" + curMixedBG,"big_p",levelCounter,{_x:-131,_y:-43});
}
levelCounter++;
mcBottle_Popup.attachMovie("bottle_big","bottle_big",levelCounter,{_x:-134,_y:-99});
}
function changeColor(num)
{
curMixedColor = num;
drawBigBottle();
}
function changeSample(num)
{
curMixedBG = num;
drawBigBottle();
}
function animateSparkleJewellery()
{
var _loc2_ = Math.floor(Math.random() * ring_set_0._width) + ring_set_0._x;
var _loc1_ = Math.floor(Math.random() * (ring_set_0._height + bracelet_set_0._height)) + ring_set_0._y;
levelCounter++;
_root.attachMovie("sparkle","sp_" + levelCounter,levelCounter,{_x:_loc2_,_y:_loc1_});
}
function initBraceletsPopup()
{
customBracelet_tmp = -1;
customBraceletCoordinates_tmp = new Array(-1,-1);
customBeads_tmp = new Array();
customBeadsCoordinates_tmp = new Array();
curBead = -1;
chosenBracelet = null;
beadNames = new Array();
beadsCounter = 0;
braceletsCounter = 0;
bracelets_popup.bead_set_1._visible = false;
bracelets_popup.bead_set_0._visible = true;
bracelets_popup.custom_bracelet_set_0._visible = true;
bracelets_popup.custom_bracelet_set_1._visible = false;
braceletSetCounter = 0;
createdBracelet = null;
}
function clearAllCustomBracelets()
{
var _loc3_ = _root;
releaseAll_Frame3();
var _loc1_ = 0;
while(_loc1_ < beadNames.length)
{
var _loc2_ = _loc3_[beadNames[_loc1_]];
_loc2_.removeMovieClip();
_loc1_ = _loc1_ + 1;
}
chosenBracelet.removeMovieClip();
initBraceletsPopup();
}
function releaseBracelet()
{
if(mcBracelet != null)
{
mcBracelet.removeMovieClip();
}
}
function releaseBead()
{
if(mcBead != null)
{
mcBead.removeMovieClip();
}
}
function releaseAll_Frame3()
{
releaseBead();
releaseBracelet();
}
function getCustomBracelet(num)
{
var _loc1_ = _root;
var _loc2_ = this;
releaseAll_Frame3();
customBracelet_tmp = num;
levelCounter++;
_loc1_.attachMovie("custom_bracelet_" + customBracelet_tmp,"mcBracelet",levelCounter,{_x:_loc1_._xmouse - 46,_y:_loc1_._ymouse - 40});
mcBracelet.onMouseMove = function()
{
var _loc1_ = this;
_loc1_._x = _root._xmouse - _loc1_._width / 2;
_loc1_._y = _root._ymouse - _loc1_._height / 2;
updateAfterEvent();
};
}
function getABead(num)
{
var _loc1_ = _root;
var _loc2_ = this;
releaseAll_Frame3();
curBead = num;
levelCounter++;
_loc1_.attachMovie("bead_" + curBead,"mcBead",levelCounter,{_x:_loc1_._xmouse - 15,_y:_loc1_._ymouse - 15});
mcBead.onMouseMove = function()
{
var _loc1_ = this;
_loc1_._x = _root._xmouse - _loc1_._width / 2;
_loc1_._y = _root._ymouse - _loc1_._height / 2;
updateAfterEvent();
};
}
function handleAddingBead()
{
var _loc2_ = this;
var _loc3_ = _root;
levelCounter++;
curX = Number(_loc3_._xmouse - mcBead._width / 2);
curY = Number(_loc3_._ymouse - mcBead._height / 2);
_loc3_.attachMovie("bead_" + curBead,"bead_" + beadsCounter,levelCounter,{_x:curX,_y:curY});
customBeads_tmp.push(curBead);
beadNames.push("bead_" + beadsCounter);
var tmpCoordinates = new Array(curX,curY);
customBeadsCoordinates_tmp.push(tmpCoordinates);
releaseBead();
_loc3_["bead_" + beadsCounter].onRelease = function()
{
var _loc2_ = this;
_loc2_.stopDrag();
if(_loc2_.hitTest(bracelets_popup.recycle_bin))
{
var _loc1_ = 0;
while(_loc1_ < beadNames.length)
{
if(_loc2_._name == beadNames[_loc1_])
{
customBeads_tmp.splice(_loc1_,1);
beadNames.splice(_loc1_,1);
customBeadsCoordinates_tmp.splice(_loc1_,1);
cur_Sound = new Sound();
cur_Sound.attachSound("trash.mp3");
cur_Sound.start();
break;
}
_loc1_ = _loc1_ + 1;
}
_loc2_.removeMovieClip();
curBead = -1;
}
else
{
_loc1_ = 0;
while(_loc1_ < beadNames.length)
{
if(_loc2_._name == beadNames[_loc1_])
{
customBeadsCoordinates_tmp[_loc1_][0] = _loc2_._x;
customBeadsCoordinates_tmp[_loc1_][1] = _loc2_._y;
break;
}
_loc1_ = _loc1_ + 1;
}
}
};
_loc3_["bead_" + beadsCounter].onPress = function()
{
if(mcBead == null)
{
this.startDrag(false);
}
else
{
handleAddingBead();
}
};
beadsCounter++;
}
function showRegistrationDialog()
{
var _loc1_ = _root;
levelCounter++;
_loc1_.attachMovie("stab_screen","stab_screen1",levelCounter,{_x:-5,_y:-5});
stab_screen1._alpha = 0;
stab_screen1.onPress = function()
{
return undefined;
};
levelCounter++;
_loc1_.attachMovie("register_popup","register_popup",levelCounter,{_x:183,_y:138});
register_popup.register_no.onPress = function()
{
stab_screen1.removeMovieClip();
register_popup.removeMovieClip();
stab_screen._visible = false;
bracelets_popup._visible = false;
_root.mcBottle_Popup._visible = false;
};
register_popup.register_yes.onPress = function()
{
getUrl("javascript:Registration()", "");
stab_screen1.removeMovieClip();
register_popup.removeMovieClip();
stab_screen._visible = false;
bracelets_popup._visible = false;
_root.mcBottle_Popup._visible = false;
};
register_popup.gs_title.onPress = function()
{
getUrl("http://www.girlsense.com/premium/", "_blank");
};
}
stop();
var nickname = 0;
var uid = 0;
var premium = 0;
myURL = this._url;
uidPos = myURL.lastIndexOf("?");
premiumPos = myURL.indexOf("&");
namePos = myURL.lastIndexOf("&");
uid = myURL.substring(uidPos + Number(5),premiumPos);
premium = myURL.substring(premiumPos + Number(9),namePos);
nickname = myURL.substring(namePos + Number(10),myURL.length);
var curColorGroup = -1;
var cur_Sound;
var nPolishes = 20;
curPolishBottlesSet = 0;
nPolishBottlesSets = 5;
var levelCounter = 2;
var nNailShapes = 4;
var nailObjects = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var nailObjectsDouble = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var contourObjects = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var highlightObjects = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var tipObjects = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var nailShape = 0;
var stickers = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var bracelets = new Array(-1,-1);
var braceletNumbers = new Array(-1,-1);
var customBracelets = new Array(-100,-100);
var rings = new Array();
var ringNames = new Array();
var choosenRingsCoordinates = new Array();
var choosenRingsFingerPosition = new Array();
var curPolish = 0;
var curNail = 0;
var curFinger = 0;
var curSticker = 0;
var curRing = 0;
var curBracelet = 0;
var customBraceletClicked = false;
var mixedColor;
var semiTransparentTransform = null;
var polishGroup = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var polishApplied = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var mixedBackgrounds = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var mixedColors = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
var nailCoordinates = new Array();
nailCoordinates.push(["277","199"]);
nailCoordinates.push(["313","177"]);
nailCoordinates.push(["345","172"]);
nailCoordinates.push(["363","207"]);
nailCoordinates.push(["359","310"]);
nailCoordinates.push(["405","309"]);
nailCoordinates.push(["413","207"]);
nailCoordinates.push(["428","173"]);
nailCoordinates.push(["457","176"]);
nailCoordinates.push(["494","199"]);
var nailLength = new Array();
nailLength.push(["16","22","21","20","19","19","20","21","21","16"]);
nailLength.push(["21","27","26","25","21","21","24","26","27","21"]);
nailLength.push(["27","32","32","30","26","26","30","32","32","27"]);
nailLength.push(["34","40","42","38","37","37","38","42","40","34"]);
var nailWidth = new Array();
nailWidth.push(["21","15","19","18","15"]);
nailWidth.push(["25","16","20","19","18"]);
nailWidth.push(["28","19","23","22","22"]);
nailWidth.push(["35","23","27","28","28"]);
var braceletCoordinates = new Array();
braceletCoordinates.push(["235","393"]);
braceletCoordinates.push(["527","413"]);
var createdBraceletCoordinates = new Array();
createdBraceletCoordinates.push(["188","428"]);
createdBraceletCoordinates.push(["536","472"]);
var choosenBraceletCoordinates = new Array();
choosenBraceletCoordinates.push(["-1","-1"]);
choosenBraceletCoordinates.push(["-1","-1"]);
var stickerCoordinates = new Array();
stickerCoordinates.push(["282","217"]);
stickerCoordinates.push(["320","197"]);
stickerCoordinates.push(["352","196"]);
stickerCoordinates.push(["368","228"]);
stickerCoordinates.push(["370","329"]);
stickerCoordinates.push(["422","338"]);
stickerCoordinates.push(["420","231"]);
stickerCoordinates.push(["437","202"]);
stickerCoordinates.push(["467","200"]);
stickerCoordinates.push(["506","221"]);
var ringCoordinates = new Array();
ringCoordinates.push(["233","290"]);
ringCoordinates.push(["264","287"]);
ringCoordinates.push(["291","298"]);
ringCoordinates.push(["316","313"]);
ringCoordinates.push(["320","372"]);
ringCoordinates.push(["455","386"]);
ringCoordinates.push(["451","331"]);
ringCoordinates.push(["479","320"]);
ringCoordinates.push(["507","308"]);
ringCoordinates.push(["539","300"]);
var mixingColorVals = new Array();
mixingColorVals.push("0x80CBE6");
mixingColorVals.push("0x389961");
mixingColorVals.push("0x737373");
mixingColorVals.push("0xFFB0A8");
mixingColorVals.push("0xA8FFCC");
mixingColorVals.push("0xFF8A40");
mixingColorVals.push("0x000000");
mixingColorVals.push("0xFFFFFF");
mixingColorVals.push("0xDC2366");
mixingColorVals.push("0xC0FFE8");
mixingColorVals.push("0xA8D4FF");
mixingColorVals.push("0xC59C94");
mixingColorVals.push("0xFF94CC");
mixingColorVals.push("0xFFD1D4");
mixingColorVals.push("0xA8D482");
mixingColorVals.push("0x6666FF");
mixingColorVals.push("0xFFBF80");
mixingColorVals.push("0xA894CC");
mixingColorVals.push("0xFFEB82");
mixingColorVals.push("0x003A8A");
mixingColorVals.push("0x9E0000");
mixingColorVals.push("0xFFD93A");
mixingColorVals.push("0xCFBEFC");
mixingColorVals.push("0xD9CCA1");
mixingColorVals.push("0x9EFF3A");
mixingColorVals.push("0x2EB0FF");
mixingColorVals.push("0xFF0000");
mixingColorVals.push("0xEBAEF3");
mixingColorVals.push("0xD9FFA6");
mixingColorVals.push("0xA81ECC");
mixingColorVals.push("0xED66C1");
mixingColorVals.push("0xFF0099");
mixingColorVals.push("0x00DCDC");
var colorGroupVals = new Array();
colorGroupVals.push(["0","255","255"]);
colorGroupVals.push(["0","0","0"]);
colorGroupVals.push(["0","255","0"]);
colorGroupVals.push(["255","0","0"]);
colorGroupVals.push(["255","255","0"]);
colorGroupVals.push(["153","51","255"]);
colorGroupVals.push(["255","70","0"]);
colorGroupVals.push(["0","0","255"]);
colorGroupVals.push(["255","204","204"]);
colorGroupVals.push(["153","0","102"]);
colorGroupVals.push(["0","0","153"]);
colorGroupVals.push(["102","102","102"]);
colorGroupVals.push(["102","153","51"]);
colorGroupVals.push(["204","51","51"]);
colorGroupVals.push(["153","0","51"]);
colorGroupVals.push(["255","204","51"]);
colorGroupVals.push(["153","0","102"]);
colorGroupVals.push(["102","153","51"]);
colorGroupVals.push(["255","153","153"]);
colorGroupVals.push(["204","102","102"]);
var handsColors = new Array("0xF8B89E","0xEEA187","0xE68C70","0xC76E51","0xFFE0D5","0xFFD8CB","0xFFCCC0","0xFFC0B3");
var curHandsColor = 5;
var curMixedBG = -1;
var curMixedColor = -1;
var curRingSet = 0;
var nRingSets = 6;
var curBraceletSet = 0;
var nBraceletSets = 7;
var curCustomBracelet2Show = -1;
var rotation;
var curY;
var curX;
var compaundDrawLevel;
levelCounter++;
_root.attachMovie("back_polishes","back_polishes",levelCounter,{_x:699,_y:64});
back_polishes._visible = false;
levelCounter++;
_root.attachMovie("color_group_0","color_group_0",levelCounter,{_x:358,_y:5});
color_group_0._visible = false;
levelCounter++;
_root.attachMovie("color_group_1","color_group_1",levelCounter,{_x:437,_y:5});
color_group_1._visible = false;
levelCounter++;
_root.attachMovie("color_group_2","color_group_2",levelCounter,{_x:520,_y:5});
color_group_2._visible = false;
levelCounter++;
_root.attachMovie("color_group_3","color_group_3",levelCounter,{_x:605,_y:5});
color_group_3._visible = false;
levelCounter++;
_root.attachMovie("color_group_4","color_group_4",levelCounter,{_x:358,_y:5});
color_group_4._visible = false;
levelCounter++;
_root.attachMovie("color_group_5","color_group_5",levelCounter,{_x:437,_y:5});
color_group_5._visible = false;
levelCounter++;
_root.attachMovie("color_group_6","color_group_6",levelCounter,{_x:520,_y:5});
color_group_6._visible = false;
levelCounter++;
_root.attachMovie("color_group_7","color_group_7",levelCounter,{_x:605,_y:5});
color_group_7._visible = false;
levelCounter++;
_root.attachMovie("color_group_8","color_group_8",levelCounter,{_x:358,_y:5});
color_group_8._visible = false;
levelCounter++;
_root.attachMovie("color_group_9","color_group_9",levelCounter,{_x:437,_y:5});
color_group_9._visible = false;
levelCounter++;
_root.attachMovie("color_group_10","color_group_10",levelCounter,{_x:520,_y:5});
color_group_10._visible = false;
levelCounter++;
_root.attachMovie("color_group_11","color_group_11",levelCounter,{_x:605,_y:5});
color_group_11._visible = false;
levelCounter++;
_root.attachMovie("color_group_12","color_group_12",levelCounter,{_x:358,_y:5});
color_group_12._visible = false;
levelCounter++;
_root.attachMovie("color_group_13","color_group_13",levelCounter,{_x:437,_y:5});
color_group_13._visible = false;
levelCounter++;
_root.attachMovie("color_group_14","color_group_14",levelCounter,{_x:520,_y:5});
color_group_14._visible = false;
levelCounter++;
_root.attachMovie("color_group_15","color_group_15",levelCounter,{_x:605,_y:5});
color_group_15._visible = false;
levelCounter++;
_root.attachMovie("color_group_16","color_group_16",levelCounter,{_x:358,_y:5});
color_group_16._visible = false;
levelCounter++;
_root.attachMovie("color_group_17","color_group_17",levelCounter,{_x:437,_y:5});
color_group_17._visible = false;
levelCounter++;
_root.attachMovie("color_group_18","color_group_18",levelCounter,{_x:520,_y:5});
color_group_18._visible = false;
levelCounter++;
_root.attachMovie("color_group_19","color_group_19",levelCounter,{_x:605,_y:5});
color_group_19._visible = false;
levelCounter++;
_root.attachMovie("polish_4","polish_4",levelCounter,{_x:373,_y:31});
polish_4._visible = false;
levelCounter++;
_root.attachMovie("polish_5","polish_5",levelCounter,{_x:452,_y:31});
polish_5._visible = false;
levelCounter++;
_root.attachMovie("polish_6","polish_6",levelCounter,{_x:536,_y:31});
polish_6._visible = false;
levelCounter++;
_root.attachMovie("polish_7","polish_7",levelCounter,{_x:619,_y:31});
polish_7._visible = false;
levelCounter++;
_root.attachMovie("polish_8","polish_8",levelCounter,{_x:373,_y:31});
polish_8._visible = false;
levelCounter++;
_root.attachMovie("polish_9","polish_9",levelCounter,{_x:452,_y:31});
polish_9._visible = false;
levelCounter++;
_root.attachMovie("polish_10","polish_10",levelCounter,{_x:536,_y:31});
polish_10._visible = false;
levelCounter++;
_root.attachMovie("polish_11","polish_11",levelCounter,{_x:619,_y:31});
polish_11._visible = false;
levelCounter++;
_root.attachMovie("polish_12","polish_12",levelCounter,{_x:373,_y:31});
polish_12._visible = false;
levelCounter++;
_root.attachMovie("polish_13","polish_13",levelCounter,{_x:452,_y:31});
polish_13._visible = false;
levelCounter++;
_root.attachMovie("polish_14","polish_14",levelCounter,{_x:536,_y:31});
polish_14._visible = false;
levelCounter++;
_root.attachMovie("polish_15","polish_15",levelCounter,{_x:619,_y:31});
polish_15._visible = false;
levelCounter++;
_root.attachMovie("polish_16","polish_16",levelCounter,{_x:373,_y:31});
polish_16._visible = false;
levelCounter++;
_root.attachMovie("polish_17","polish_17",levelCounter,{_x:452,_y:31});
polish_17._visible = false;
levelCounter++;
_root.attachMovie("polish_18","polish_18",levelCounter,{_x:536,_y:31});
polish_18._visible = false;
levelCounter++;
_root.attachMovie("polish_19","polish_19",levelCounter,{_x:619,_y:31});
polish_19._visible = false;
levelCounter++;
_root.attachMovie("bottle_popup","mcBottle_Popup",levelCounter,{_x:400,_y:250});
mcBottle_Popup._visible = false;
levelCounter++;
_root.attachMovie("stab_screen","stab_screen",levelCounter,{_x:-5,_y:-5});
stab_screen._visible = false;
levelCounter++;
_root.attachMovie("bracelets_popup","bracelets_popup",levelCounter,{_x:4,_y:-9});
bracelets_popup._visible = false;
levelCounter++;
_root.attachMovie("ring_set_1","ring_set_1",levelCounter,{_x:35,_y:171});
ring_set_1._visible = false;
levelCounter++;
_root.attachMovie("ring_set_2","ring_set_2",levelCounter,{_x:35,_y:171});
ring_set_2._visible = false;
levelCounter++;
_root.attachMovie("ring_set_3","ring_set_3",levelCounter,{_x:35,_y:171});
ring_set_3._visible = false;
levelCounter++;
_root.attachMovie("ring_set_4","ring_set_4",levelCounter,{_x:35,_y:171});
ring_set_4._visible = false;
levelCounter++;
_root.attachMovie("ring_set_5","ring_set_5",levelCounter,{_x:35,_y:171});
ring_set_5._visible = false;
levelCounter++;
_root.attachMovie("bracelet_set_1","bracelet_set_1",levelCounter,{_x:43,_y:257});
bracelet_set_1._visible = false;
levelCounter++;
_root.attachMovie("bracelet_set_2","bracelet_set_2",levelCounter,{_x:43,_y:257});
bracelet_set_2._visible = false;
levelCounter++;
_root.attachMovie("bracelet_set_3","bracelet_set_3",levelCounter,{_x:43,_y:257});
bracelet_set_3._visible = false;
levelCounter++;
_root.attachMovie("bracelet_set_4","bracelet_set_4",levelCounter,{_x:43,_y:257});
bracelet_set_4._visible = false;
levelCounter++;
_root.attachMovie("bracelet_set_5","bracelet_set_5",levelCounter,{_x:43,_y:257});
bracelet_set_5._visible = false;
levelCounter++;
_root.attachMovie("bracelet_set_6","bracelet_set_6",levelCounter,{_x:43,_y:257});
bracelet_set_6._visible = false;
levelCounter++;
_root.attachMovie("coming_soon","coming_soon",levelCounter,{_x:68,_y:99});
coming_soon._visible = false;
levelCounter++;
_root.attachMovie("polish_explanations","polish_explanations",levelCounter);
polish_explanations._visible = false;
var doDrag = false;
var ringsCounter = 0;
bg.onPress = function()
{
releaseAll();
};
skins.skin_color_0.onPress = function()
{
curHandsColor = 0;
changeHandsColor();
};
skins.skin_color_1.onPress = function()
{
curHandsColor = 1;
changeHandsColor();
};
skins.skin_color_2.onPress = function()
{
curHandsColor = 2;
changeHandsColor();
};
skins.skin_color_3.onPress = function()
{
curHandsColor = 3;
changeHandsColor();
};
skins.skin_color_4.onPress = function()
{
curHandsColor = 4;
changeHandsColor();
};
skins.skin_color_5.onPress = function()
{
curHandsColor = 5;
changeHandsColor();
};
skins.skin_color_6.onPress = function()
{
curHandsColor = 6;
changeHandsColor();
};
skins.skin_color_7.onPress = function()
{
curHandsColor = 7;
changeHandsColor();
};
var curColorGroup = -1;
var polishExplanationsDisplayed = new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1);
polish_0.onPress = function()
{
colorPressed(0);
};
polish_0.onRollOver = function()
{
colorRolledOver(0);
};
polish_1.onPress = function()
{
colorPressed(1);
};
polish_1.onRollOver = function()
{
colorRolledOver(1);
};
polish_2.onPress = function()
{
colorPressed(2);
};
polish_2.onRollOver = function()
{
colorRolledOver(2);
};
polish_3.onPress = function()
{
colorPressed(3);
};
polish_3.onRollOver = function()
{
colorRolledOver(3);
};
polish_4.onPress = function()
{
colorPressed(4);
};
polish_4.onRollOver = function()
{
colorRolledOver(4);
};
polish_5.onPress = function()
{
colorPressed(5);
};
polish_5.onRollOver = function()
{
colorRolledOver(5);
};
polish_6.onPress = function()
{
colorPressed(6);
};
polish_6.onRollOver = function()
{
colorRolledOver(6);
};
polish_7.onPress = function()
{
colorPressed(7);
};
polish_7.onRollOver = function()
{
colorRolledOver(7);
};
polish_8.onPress = function()
{
colorPressed(8);
};
polish_8.onRollOver = function()
{
colorRolledOver(8);
};
polish_9.onPress = function()
{
colorPressed(9);
};
polish_9.onRollOver = function()
{
colorRolledOver(9);
};
polish_10.onPress = function()
{
colorPressed(10);
};
polish_10.onRollOver = function()
{
colorRolledOver(10);
};
polish_11.onPress = function()
{
colorPressed(11);
};
polish_11.onRollOver = function()
{
colorRolledOver(11);
};
polish_12.onPress = function()
{
colorPressed(12);
};
polish_12.onRollOver = function()
{
colorRolledOver(12);
};
polish_13.onPress = function()
{
colorPressed(13);
};
polish_13.onRollOver = function()
{
colorRolledOver(13);
};
polish_14.onPress = function()
{
colorPressed(14);
};
polish_14.onRollOver = function()
{
colorRolledOver(14);
};
polish_15.onPress = function()
{
colorPressed(15);
};
polish_15.onRollOver = function()
{
colorRolledOver(15);
};
polish_16.onPress = function()
{
colorPressed(16);
};
polish_16.onRollOver = function()
{
colorRolledOver(16);
};
polish_17.onPress = function()
{
colorPressed(17);
};
polish_17.onRollOver = function()
{
colorRolledOver(17);
};
polish_18.onPress = function()
{
colorPressed(18);
};
polish_18.onRollOver = function()
{
colorRolledOver(18);
};
polish_19.onPress = function()
{
colorPressed(19);
};
polish_19.onRollOver = function()
{
colorRolledOver(19);
};
color_group_0.polish_0_0.onRollOver = function()
{
handleRollOVerPolish(0,0);
};
color_group_0.polish_0_0.onPress = function()
{
handleClickOnPolish(0,0);
};
color_group_0.polish_0_1.onRollOver = function()
{
handleRollOVerPolish(0,1);
};
color_group_0.polish_0_1.onPress = function()
{
handleClickOnPolish(0,1);
};
color_group_0.polish_0_2.onRollOver = function()
{
handleRollOVerPolish(0,2);
};
color_group_0.polish_0_2.onPress = function()
{
handleClickOnPolish(0,2);
};
color_group_0.polish_0_3.onRollOver = function()
{
handleRollOVerPolish(0,3);
};
color_group_0.polish_0_3.onPress = function()
{
handleClickOnPolish(0,3);
};
color_group_1.polish_1_0.onRollOver = function()
{
handleRollOVerPolish(1,0);
};
color_group_1.polish_1_0.onPress = function()
{
handleClickOnPolish(1,0);
};
color_group_1.polish_1_1.onRollOver = function()
{
handleRollOVerPolish(1,1);
};
color_group_1.polish_1_1.onPress = function()
{
handleClickOnPolish(1,1);
};
color_group_1.polish_1_2.onRollOver = function()
{
handleRollOVerPolish(1,2);
};
color_group_1.polish_1_2.onPress = function()
{
handleClickOnPolish(1,2);
};
color_group_1.polish_1_3.onRollOver = function()
{
handleRollOVerPolish(1,3);
};
color_group_1.polish_1_3.onPress = function()
{
handleClickOnPolish(1,3);
};
color_group_2.polish_2_0.onRollOver = function()
{
handleRollOVerPolish(2,0);
};
color_group_2.polish_2_0.onPress = function()
{
handleClickOnPolish(2,0);
};
color_group_2.polish_2_1.onRollOver = function()
{
handleRollOVerPolish(2,1);
};
color_group_2.polish_2_1.onPress = function()
{
handleClickOnPolish(2,1);
};
color_group_2.polish_2_2.onRollOver = function()
{
handleRollOVerPolish(2,2);
};
color_group_2.polish_2_2.onPress = function()
{
handleClickOnPolish(2,2);
};
color_group_2.polish_2_3.onRollOver = function()
{
handleRollOVerPolish(2,3);
};
color_group_2.polish_2_3.onPress = function()
{
handleClickOnPolish(2,3);
};
color_group_3.polish_3_0.onRollOver = function()
{
handleRollOVerPolish(3,0);
};
color_group_3.polish_3_0.onPress = function()
{
handleClickOnPolish(3,0);
};
color_group_3.polish_3_1.onRollOver = function()
{
handleRollOVerPolish(3,1);
};
color_group_3.polish_3_1.onPress = function()
{
handleClickOnPolish(3,1);
};
color_group_3.polish_3_2.onRollOver = function()
{
handleRollOVerPolish(3,2);
};
color_group_3.polish_3_2.onPress = function()
{
handleClickOnPolish(3,2);
};
color_group_3.polish_3_3.onRollOver = function()
{
handleRollOVerPolish(3,3);
};
color_group_3.polish_3_3.onPress = function()
{
handleClickOnPolish(3,3);
};
color_group_4.polish_4_0.onRollOver = function()
{
handleRollOVerPolish(4,0);
};
color_group_4.polish_4_0.onPress = function()
{
handleClickOnPolish(4,0);
};
color_group_4.polish_4_1.onRollOver = function()
{
handleRollOVerPolish(4,1);
};
color_group_4.polish_4_1.onPress = function()
{
handleClickOnPolish(4,1);
};
color_group_4.polish_4_2.onRollOver = function()
{
handleRollOVerPolish(4,2);
};
color_group_4.polish_4_2.onPress = function()
{
handleClickOnPolish(4,2);
};
color_group_4.polish_4_3.onRollOver = function()
{
handleRollOVerPolish(4,3);
};
color_group_4.polish_4_3.onPress = function()
{
handleClickOnPolish(4,3);
};
color_group_5.polish_5_0.onRollOver = function()
{
handleRollOVerPolish(5,0);
};
color_group_5.polish_5_0.onPress = function()
{
handleClickOnPolish(5,0);
};
color_group_5.polish_5_1.onRollOver = function()
{
handleRollOVerPolish(5,1);
};
color_group_5.polish_5_1.onPress = function()
{
handleClickOnPolish(5,1);
};
color_group_5.polish_5_2.onRollOver = function()
{
handleRollOVerPolish(5,2);
};
color_group_5.polish_5_2.onPress = function()
{
handleClickOnPolish(5,2);
};
color_group_5.polish_5_3.onRollOver = function()
{
handleRollOVerPolish(5,3);
};
color_group_5.polish_5_3.onPress = function()
{
handleClickOnPolish(5,3);
};
color_group_6.polish_6_0.onRollOver = function()
{
handleRollOVerPolish(6,0);
};
color_group_6.polish_6_0.onPress = function()
{
handleClickOnPolish(6,0);
};
color_group_6.polish_6_1.onRollOver = function()
{
handleRollOVerPolish(6,1);
};
color_group_6.polish_6_1.onPress = function()
{
handleClickOnPolish(6,1);
};
color_group_6.polish_6_2.onRollOver = function()
{
handleRollOVerPolish(6,2);
};
color_group_6.polish_6_2.onPress = function()
{
handleClickOnPolish(6,2);
};
color_group_6.polish_6_3.onRollOver = function()
{
handleRollOVerPolish(6,3);
};
color_group_6.polish_6_3.onPress = function()
{
handleClickOnPolish(6,3);
};
color_group_7.polish_7_0.onRollOver = function()
{
handleRollOVerPolish(7,0);
};
color_group_7.polish_7_0.onPress = function()
{
handleClickOnPolish(7,0);
};
color_group_7.polish_7_1.onRollOver = function()
{
handleRollOVerPolish(7,1);
};
color_group_7.polish_7_1.onPress = function()
{
handleClickOnPolish(7,1);
};
color_group_7.polish_7_2.onRollOver = function()
{
handleRollOVerPolish(7,2);
};
color_group_7.polish_7_2.onPress = function()
{
handleClickOnPolish(7,2);
};
color_group_7.polish_7_3.onRollOver = function()
{
handleRollOVerPolish(7,3);
};
color_group_7.polish_7_3.onPress = function()
{
handleClickOnPolish(7,3);
};
color_group_8.polish_8_0.onRollOver = function()
{
handleRollOVerPolish(8,0);
};
color_group_8.polish_8_0.onPress = function()
{
handleClickOnPolish(8,0);
};
color_group_8.polish_8_1.onRollOver = function()
{
handleRollOVerPolish(8,1);
};
color_group_8.polish_8_1.onPress = function()
{
handleClickOnPolish(8,1);
};
color_group_8.polish_8_2.onRollOver = function()
{
handleRollOVerPolish(8,2);
};
color_group_8.polish_8_2.onPress = function()
{
handleClickOnPolish(8,2);
};
color_group_8.polish_8_3.onRollOver = function()
{
handleRollOVerPolish(8,3);
};
color_group_8.polish_8_3.onPress = function()
{
handleClickOnPolish(8,3);
};
color_group_9.polish_9_0.onRollOver = function()
{
handleRollOVerPolish(9,0);
};
color_group_9.polish_9_0.onPress = function()
{
handleClickOnPolish(9,0);
};
color_group_9.polish_9_1.onRollOver = function()
{
handleRollOVerPolish(9,1);
};
color_group_9.polish_9_1.onPress = function()
{
handleClickOnPolish(9,1);
};
color_group_9.polish_9_2.onRollOver = function()
{
handleRollOVerPolish(9,2);
};
color_group_9.polish_9_2.onPress = function()
{
handleClickOnPolish(9,2);
};
color_group_9.polish_9_3.onRollOver = function()
{
handleRollOVerPolish(9,3);
};
color_group_9.polish_9_3.onPress = function()
{
handleClickOnPolish(9,3);
};
color_group_10.polish_10_0.onRollOver = function()
{
handleRollOVerPolish(10,0);
};
color_group_10.polish_10_0.onPress = function()
{
handleClickOnPolish(10,0);
};
color_group_10.polish_10_1.onRollOver = function()
{
handleRollOVerPolish(10,1);
};
color_group_10.polish_10_1.onPress = function()
{
handleClickOnPolish(10,1);
};
color_group_10.polish_10_2.onRollOver = function()
{
handleRollOVerPolish(10,2);
};
color_group_10.polish_10_2.onPress = function()
{
handleClickOnPolish(10,2);
};
color_group_10.polish_10_3.onRollOver = function()
{
handleRollOVerPolish(10,3);
};
color_group_10.polish_10_3.onPress = function()
{
handleClickOnPolish(10,3);
};
color_group_11.polish_11_0.onRollOver = function()
{
handleRollOVerPolish(11,0);
};
color_group_11.polish_11_0.onPress = function()
{
handleClickOnPolish(11,0);
};
color_group_11.polish_11_1.onRollOver = function()
{
handleRollOVerPolish(11,1);
};
color_group_11.polish_11_1.onPress = function()
{
handleClickOnPolish(11,1);
};
color_group_11.polish_11_2.onRollOver = function()
{
handleRollOVerPolish(11,2);
};
color_group_11.polish_11_2.onPress = function()
{
handleClickOnPolish(11,2);
};
color_group_11.polish_11_3.onRollOver = function()
{
handleRollOVerPolish(11,3);
};
color_group_11.polish_11_3.onPress = function()
{
handleClickOnPolish(11,3);
};
color_group_12.polish_12_0.onRollOver = function()
{
handleRollOVerPolish(12,0);
};
color_group_12.polish_12_0.onPress = function()
{
handleClickOnPolish(12,0);
};
color_group_12.polish_12_1.onRollOver = function()
{
handleRollOVerPolish(12,1);
};
color_group_12.polish_12_1.onPress = function()
{
handleClickOnPolish(12,1);
};
color_group_12.polish_12_2.onRollOver = function()
{
handleRollOVerPolish(12,2);
};
color_group_12.polish_12_2.onPress = function()
{
handleClickOnPolish(12,2);
};
color_group_12.polish_12_3.onRollOver = function()
{
handleRollOVerPolish(12,3);
};
color_group_12.polish_12_3.onPress = function()
{
handleClickOnPolish(12,3);
};
color_group_13.polish_13_0.onRollOver = function()
{
handleRollOVerPolish(13,0);
};
color_group_13.polish_13_0.onPress = function()
{
handleClickOnPolish(13,0);
};
color_group_13.polish_13_1.onRollOver = function()
{
handleRollOVerPolish(13,1);
};
color_group_13.polish_13_1.onPress = function()
{
handleClickOnPolish(13,1);
};
color_group_13.polish_13_2.onRollOver = function()
{
handleRollOVerPolish(13,2);
};
color_group_13.polish_13_2.onPress = function()
{
handleClickOnPolish(13,2);
};
color_group_13.polish_13_3.onRollOver = function()
{
handleRollOVerPolish(13,3);
};
color_group_13.polish_13_3.onPress = function()
{
handleClickOnPolish(13,3);
};
color_group_14.polish_14_0.onRollOver = function()
{
handleRollOVerPolish(14,0);
};
color_group_14.polish_14_0.onPress = function()
{
handleClickOnPolish(14,0);
};
color_group_14.polish_14_1.onRollOver = function()
{
handleRollOVerPolish(14,1);
};
color_group_14.polish_14_1.onPress = function()
{
handleClickOnPolish(14,1);
};
color_group_14.polish_14_2.onRollOver = function()
{
handleRollOVerPolish(14,2);
};
color_group_14.polish_14_2.onPress = function()
{
handleClickOnPolish(14,2);
};
color_group_14.polish_14_3.onRollOver = function()
{
handleRollOVerPolish(14,3);
};
color_group_14.polish_14_3.onPress = function()
{
handleClickOnPolish(14,3);
};
color_group_15.polish_15_0.onRollOver = function()
{
handleRollOVerPolish(15,0);
};
color_group_15.polish_15_0.onPress = function()
{
handleClickOnPolish(15,0);
};
color_group_15.polish_15_1.onRollOver = function()
{
handleRollOVerPolish(15,1);
};
color_group_15.polish_15_1.onPress = function()
{
handleClickOnPolish(15,1);
};
color_group_15.polish_15_2.onRollOver = function()
{
handleRollOVerPolish(15,2);
};
color_group_15.polish_15_2.onPress = function()
{
handleClickOnPolish(15,2);
};
color_group_15.polish_15_3.onRollOver = function()
{
handleRollOVerPolish(15,3);
};
color_group_15.polish_15_3.onPress = function()
{
handleClickOnPolish(15,3);
};
color_group_16.polish_16_0.onRollOver = function()
{
handleRollOVerPolish(16,0);
};
color_group_16.polish_16_0.onPress = function()
{
handleClickOnPolish(16,0);
};
color_group_16.polish_16_1.onRollOver = function()
{
handleRollOVerPolish(16,1);
};
color_group_16.polish_16_1.onPress = function()
{
handleClickOnPolish(16,1);
};
color_group_16.polish_16_2.onRollOver = function()
{
handleRollOVerPolish(16,2);
};
color_group_16.polish_16_2.onPress = function()
{
handleClickOnPolish(16,2);
};
color_group_16.polish_16_3.onRollOver = function()
{
handleRollOVerPolish(16,3);
};
color_group_16.polish_16_3.onPress = function()
{
handleClickOnPolish(16,3);
};
color_group_17.polish_17_0.onRollOver = function()
{
handleRollOVerPolish(17,0);
};
color_group_17.polish_17_0.onPress = function()
{
handleClickOnPolish(17,0);
};
color_group_17.polish_17_1.onRollOver = function()
{
handleRollOVerPolish(17,1);
};
color_group_17.polish_17_1.onPress = function()
{
handleClickOnPolish(17,1);
};
color_group_17.polish_17_2.onRollOver = function()
{
handleRollOVerPolish(17,2);
};
color_group_17.polish_17_2.onPress = function()
{
handleClickOnPolish(17,2);
};
color_group_17.polish_17_3.onRollOver = function()
{
handleRollOVerPolish(17,3);
};
color_group_17.polish_17_3.onPress = function()
{
handleClickOnPolish(17,3);
};
color_group_18.polish_18_0.onRollOver = function()
{
handleRollOVerPolish(18,0);
};
color_group_18.polish_18_0.onPress = function()
{
handleClickOnPolish(18,0);
};
color_group_18.polish_18_1.onRollOver = function()
{
handleRollOVerPolish(18,1);
};
color_group_18.polish_18_1.onPress = function()
{
handleClickOnPolish(18,1);
};
color_group_18.polish_18_2.onRollOver = function()
{
handleRollOVerPolish(18,2);
};
color_group_18.polish_18_2.onPress = function()
{
handleClickOnPolish(18,2);
};
color_group_18.polish_18_3.onRollOver = function()
{
handleRollOVerPolish(18,3);
};
color_group_18.polish_18_3.onPress = function()
{
handleClickOnPolish(18,3);
};
color_group_19.polish_19_0.onRollOver = function()
{
handleRollOVerPolish(19,0);
};
color_group_19.polish_19_0.onPress = function()
{
handleClickOnPolish(19,0);
};
color_group_19.polish_19_1.onRollOver = function()
{
handleRollOVerPolish(19,1);
};
color_group_19.polish_19_1.onPress = function()
{
handleClickOnPolish(19,1);
};
color_group_19.polish_19_2.onRollOver = function()
{
handleRollOVerPolish(19,2);
};
color_group_19.polish_19_2.onPress = function()
{
handleClickOnPolish(19,2);
};
color_group_19.polish_19_3.onRollOver = function()
{
handleRollOVerPolish(19,3);
};
color_group_19.polish_19_3.onPress = function()
{
handleClickOnPolish(19,3);
};
nail_0.onPress = function()
{
releaseRing();
curNail = 0;
handleClickOnNail();
};
nail_1.onPress = function()
{
releaseRing();
curNail = 1;
handleClickOnNail();
};
nail_2.onPress = function()
{
releaseRing();
curNail = 2;
handleClickOnNail();
};
nail_3.onPress = function()
{
releaseRing();
curNail = 3;
handleClickOnNail();
};
nail_4.onPress = function()
{
releaseRing();
curNail = 4;
handleClickOnNail();
};
nail_5.onPress = function()
{
releaseRing();
curNail = 5;
handleClickOnNail();
};
nail_6.onPress = function()
{
releaseRing();
curNail = 6;
handleClickOnNail();
};
nail_7.onPress = function()
{
releaseRing();
curNail = 7;
handleClickOnNail();
};
nail_8.onPress = function()
{
releaseRing();
curNail = 8;
handleClickOnNail();
};
nail_9.onPress = function()
{
releaseRing();
curNail = 9;
handleClickOnNail();
};
finger_0.onPress = function()
{
curFinger = 0;
handleClickOnFinger();
};
finger_1.onPress = function()
{
curFinger = 1;
handleClickOnFinger();
};
finger_2.onPress = function()
{
curFinger = 2;
handleClickOnFinger();
};
finger_3.onPress = function()
{
curFinger = 3;
handleClickOnFinger();
};
finger_4.onPress = function()
{
curFinger = 4;
handleClickOnFinger();
};
finger_5.onPress = function()
{
curFinger = 5;
handleClickOnFinger();
};
finger_6.onPress = function()
{
curFinger = 6;
handleClickOnFinger();
};
finger_7.onPress = function()
{
curFinger = 7;
handleClickOnFinger();
};
finger_8.onPress = function()
{
curFinger = 8;
handleClickOnFinger();
};
finger_9.onPress = function()
{
curFinger = 9;
handleClickOnFinger();
};
left_hand.onPress = function()
{
handleClickOnHands(0);
};
right_hand.onPress = function()
{
handleClickOnHands(1);
};
aaa.onPress = function()
{
var _loc1_ = _root;
if(mcBottle_Popup._visible != true)
{
curColorGroup = -1;
curPolish = -1;
releaseAll();
levelCounter++;
_loc1_.attachMovie("remover","mcRemover",levelCounter,{_x:_loc1_._xmouse - 17,_y:_loc1_._ymouse - 17});
mcRemover.onMouseMove = function()
{
this._x = _root._xmouse - 17;
this._y = _root._ymouse - 17;
updateAfterEvent();
};
cur_Sound = new Sound();
cur_Sound.attachSound("bottle_rollover.mp3");
cur_Sound.start();
}
};
aaa.onRollOver = function()
{
this.gotoAndStop(2);
};
aaa.onRollOut = function()
{
this.gotoAndStop(1);
};
back_polishes.onPress = function()
{
var _loc3_ = _root;
releaseAll();
cur_Sound = new Sound();
cur_Sound.attachSound("buttons.mp3");
cur_Sound.start();
var _loc1_ = 0;
while(_loc1_ < 4)
{
var _loc2_ = "polish_" + Number(curPolishBottlesSet * 4 + _loc1_);
_loc3_[_loc2_]._visible = false;
_loc1_ = _loc1_ + 1;
}
curPolishBottlesSet--;
_loc1_ = 0;
while(_loc1_ < 4)
{
_loc2_ = "polish_" + Number(curPolishBottlesSet * 4 + _loc1_);
_loc3_[_loc2_]._visible = true;
_loc1_ = _loc1_ + 1;
}
if(curPolishBottlesSet == 0)
{
more_polishes._visible = true;
this._visible = false;
}
};
more_polishes.onPress = function()
{
var _loc3_ = _root;
if(mcBottle_Popup._visible != true)
{
releaseAll();
cur_Sound = new Sound();
cur_Sound.attachSound("buttons.mp3");
cur_Sound.start();
var _loc1_ = 0;
while(_loc1_ < 4)
{
var _loc2_ = "polish_" + Number(curPolishBottlesSet * 4 + _loc1_);
_loc3_[_loc2_]._visible = false;
_loc1_ = _loc1_ + 1;
}
curPolishBottlesSet++;
_loc1_ = 0;
while(_loc1_ < 4)
{
_loc2_ = "polish_" + Number(curPolishBottlesSet * 4 + _loc1_);
_loc3_[_loc2_]._visible = true;
_loc1_ = _loc1_ + 1;
}
if(curPolishBottlesSet == nPolishBottlesSets - 1)
{
back_polishes._visible = true;
back_polishes._x = 699;
back_polishes._y = 64;
this._visible = false;
}
}
};
more_rings.onPress = function()
{
if(mcBottle_Popup._visible != true)
{
releaseAll();
cur_Sound = new Sound();
cur_Sound.attachSound("buttons.mp3");
cur_Sound.start();
var _loc1_ = "ring_set_" + curRingSet;
_root[_loc1_]._visible = false;
curRingSet++;
if(curRingSet == nRingSets)
{
curRingSet = 0;
}
_loc1_ = "ring_set_" + curRingSet;
_root[_loc1_]._visible = true;
}
};
go_pedicure.onRollOver = function()
{
coming_soon._visible = true;
coming_soon._x = 191;
coming_soon._y = 45;
};
go_pedicure.onPress = function()
{
coming_soon._visible = true;
coming_soon._x = 191;
coming_soon._y = 45;
};
go_pedicure.onRollOut = function()
{
coming_soon._visible = false;
};
create_ring.onRollOver = function()
{
if(mcBottle_Popup._visible == true)
{
return undefined;
}
coming_soon._visible = true;
coming_soon._x = 68;
coming_soon._y = 99;
};
create_ring.onPress = function()
{
if(mcBottle_Popup._visible == true)
{
return undefined;
}
coming_soon._visible = true;
coming_soon._x = 68;
coming_soon._y = 99;
};
create_ring.onRollOut = function()
{
coming_soon._visible = false;
};
create_bracelet.onPress = function()
{
if(mcBottle_Popup._visible == true)
{
return undefined;
}
releaseAll();
cur_Sound = new Sound();
cur_Sound.attachSound("buttons.mp3");
cur_Sound.start();
stab_screen._visible = true;
levelCounter++;
stab_screen.swapDepths(levelCounter);
bracelets_popup._visible = true;
levelCounter++;
bracelets_popup.swapDepths(levelCounter);
if(premium == 0)
{
showRegistrationDialog();
}
if(new_label != null)
{
new_label.removeMovieClip();
}
initBraceletsPopup();
};
more_bracelets.onPress = function()
{
if(mcBottle_Popup._visible == true)
{
return undefined;
}
releaseAll();
cur_Sound = new Sound();
cur_Sound.attachSound("buttons.mp3");
cur_Sound.start();
_root["bracelet_set_" + curBraceletSet]._visible = false;
curBraceletSet++;
if(curBraceletSet >= nBraceletSets)
{
if(customBracelet.length > 0)
{
curCustomBracelet2Show++;
if(curCustomBracelet2Show >= customBracelet.length)
{
curBraceletSet = 0;
curCustomBracelet2Show = -1;
showBracelet();
}
else
{
showCustomBracelet();
}
}
else
{
curBraceletSet = 0;
showBracelet();
}
}
else
{
showBracelet();
}
};
make_polish.onPress = function()
{
openMixPopUp();
cur_Sound = new Sound();
cur_Sound.attachSound("buttons.mp3");
cur_Sound.start();
};
empty_bottle.onPress = function()
{
var _loc1_ = _root;
var _loc2_ = this;
if(curMixedBG != -1 || curMixedColor != -1)
{
if(mcBrushMix != null)
{
mcBrushMix.removeMovieClip();
}
if(mcBrush != null)
{
mcBrush.removeMovieClip();
}
levelCounter++;
_loc1_.attachMovie("brush","mcBrushMix",levelCounter,{_x:_loc1_._xmouse,_y:0});
mcBrushMix.onMouseMove = function()
{
var _loc1_ = this;
_loc1_._x = _root._xmouse;
_loc1_._y = _root._ymouse - _loc1_._height;
updateAfterEvent();
};
cap._visible = false;
}
else
{
openMixPopUp();
}
};
mcBottle_Popup.ok_btn.onPress = function()
{
var _loc1_ = _root;
var _loc2_ = this;
cur_Sound = new Sound();
cur_Sound.attachSound("buttons.mp3");
cur_Sound.start();
_loc1_.mcBottle_Popup._visible = false;
drawSmallBottle();
if(curMixedBG != -1 && curMixedColor != -1)
{
levelCounter++;
_loc1_.attachMovie("brush","mcBrushMix",levelCounter,{_x:_loc1_._xmouse,_y:0});
mcBrushMix.onMouseMove = function()
{
var _loc1_ = this;
_loc1_._x = _root._xmouse;
_loc1_._y = _root._ymouse - _loc1_._height;
updateAfterEvent();
};
cap._visible = false;
}
else
{
levelCounter++;
cap.swapDepths(levelCounter);
}
};
var theOldColor;
var theNewColor;
mcBottle_Popup.bg_colors.bg_color_0.onPress = function()
{
changeColor(0);
};
mcBottle_Popup.bg_colors.bg_color_1.onPress = function()
{
changeColor(1);
};
mcBottle_Popup.bg_colors.bg_color_2.onPress = function()
{
changeColor(2);
};
mcBottle_Popup.bg_colors.bg_color_3.onPress = function()
{
changeColor(3);
};
mcBottle_Popup.bg_colors.bg_color_4.onPress = function()
{
changeColor(4);
};
mcBottle_Popup.bg_colors.bg_color_5.onPress = function()
{
changeColor(5);
};
mcBottle_Popup.bg_colors.bg_color_6.onPress = function()
{
changeColor(6);
};
mcBottle_Popup.bg_colors.bg_color_7.onPress = function()
{
changeColor(7);
};
mcBottle_Popup.bg_colors.bg_color_8.onPress = function()
{
changeColor(8);
};
mcBottle_Popup.bg_colors.bg_color_9.onPress = function()
{
changeColor(9);
};
mcBottle_Popup.bg_colors.bg_color_10.onPress = function()
{
changeColor(10);
};
mcBottle_Popup.bg_colors.bg_color_11.onPress = function()
{
changeColor(11);
};
mcBottle_Popup.bg_colors.bg_color_12.onPress = function()
{
changeColor(12);
};
mcBottle_Popup.bg_colors.bg_color_13.onPress = function()
{
changeColor(13);
};
mcBottle_Popup.bg_colors.bg_color_14.onPress = function()
{
changeColor(14);
};
mcBottle_Popup.bg_colors.bg_color_15.onPress = function()
{
changeColor(15);
};
mcBottle_Popup.bg_colors.bg_color_16.onPress = function()
{
changeColor(16);
};
mcBottle_Popup.bg_colors.bg_color_17.onPress = function()
{
changeColor(17);
};
mcBottle_Popup.bg_colors.bg_color_18.onPress = function()
{
changeColor(18);
};
mcBottle_Popup.bg_colors.bg_color_19.onPress = function()
{
changeColor(19);
};
mcBottle_Popup.bg_colors.bg_color_20.onPress = function()
{
changeColor(20);
};
mcBottle_Popup.bg_colors.bg_color_21.onPress = function()
{
changeColor(21);
};
mcBottle_Popup.bg_colors.bg_color_22.onPress = function()
{
changeColor(22);
};
mcBottle_Popup.bg_colors.bg_color_23.onPress = function()
{
changeColor(23);
};
mcBottle_Popup.bg_colors.bg_color_24.onPress = function()
{
changeColor(24);
};
mcBottle_Popup.bg_colors.bg_color_25.onPress = function()
{
changeColor(25);
};
mcBottle_Popup.bg_colors.bg_color_26.onPress = function()
{
changeColor(26);
};
mcBottle_Popup.bg_colors.bg_color_27.onPress = function()
{
changeColor(27);
};
mcBottle_Popup.bg_colors.bg_color_28.onPress = function()
{
changeColor(28);
};
mcBottle_Popup.bg_colors.bg_color_29.onPress = function()
{
changeColor(29);
};
mcBottle_Popup.bg_colors.bg_color_30.onPress = function()
{
changeColor(30);
};
mcBottle_Popup.bg_colors.bg_color_31.onPress = function()
{
changeColor(31);
};
mcBottle_Popup.bg_colors.bg_color_32.onPress = function()
{
changeColor(32);
};
mcBottle_Popup.patterns.pattern_0.onPress = function()
{
changeSample(0);
};
mcBottle_Popup.patterns.pattern_1.onPress = function()
{
changeSample(1);
};
mcBottle_Popup.patterns.pattern_2.onPress = function()
{
changeSample(2);
};
mcBottle_Popup.patterns.pattern_3.onPress = function()
{
changeSample(3);
};
mcBottle_Popup.patterns.pattern_4.onPress = function()
{
changeSample(4);
};
mcBottle_Popup.patterns.pattern_5.onPress = function()
{
changeSample(5);
};
mcBottle_Popup.patterns.pattern_6.onPress = function()
{
changeSample(6);
};
mcBottle_Popup.patterns.pattern_7.onPress = function()
{
changeSample(7);
};
mcBottle_Popup.patterns.pattern_8.onPress = function()
{
changeSample(8);
};
mcBottle_Popup.patterns.pattern_9.onPress = function()
{
changeSample(9);
};
mcBottle_Popup.patterns.pattern_10.onPress = function()
{
changeSample(10);
};
mcBottle_Popup.patterns.pattern_11.onPress = function()
{
changeSample(11);
};
mcBottle_Popup.patterns.pattern_12.onPress = function()
{
changeSample(12);
};
mcBottle_Popup.patterns.pattern_13.onPress = function()
{
changeSample(13);
};
mcBottle_Popup.patterns.pattern_14.onPress = function()
{
changeSample(14);
};
mcBottle_Popup.patterns.pattern_15.onPress = function()
{
changeSample(15);
};
mcBottle_Popup.patterns.pattern_16.onPress = function()
{
changeSample(16);
};
mcBottle_Popup.patterns.pattern_17.onPress = function()
{
changeSample(17);
};
mcBottle_Popup.patterns.pattern_18.onPress = function()
{
changeSample(18);
};
mcBottle_Popup.patterns.pattern_19.onPress = function()
{
changeSample(19);
};
mcBottle_Popup.patterns.pattern_20.onPress = function()
{
changeSample(20);
};
mcBottle_Popup.patterns.pattern_21.onPress = function()
{
changeSample(21);
};
mcBottle_Popup.patterns.pattern_22.onPress = function()
{
changeSample(22);
};
bracelet_set_0.bracelet_0.onPress = function()
{
releaseAll();
curBracelet = 0;
getBracelet();
};
bracelet_set_0.bracelet_1.onPress = function()
{
releaseAll();
curBracelet = 1;
getBracelet();
};
bracelet_set_1.bracelet_2.onPress = function()
{
releaseAll();
curBracelet = 2;
getBracelet();
};
bracelet_set_1.bracelet_3.onPress = function()
{
releaseAll();
curBracelet = 3;
getBracelet();
};
bracelet_set_2.bracelet_4.onPress = function()
{
releaseAll();
curBracelet = 4;
getBracelet();
};
bracelet_set_2.bracelet_5.onPress = function()
{
releaseAll();
curBracelet = 5;
getBracelet();
};
bracelet_set_3.bracelet_6.onPress = function()
{
releaseAll();
curBracelet = 6;
getBracelet();
};
bracelet_set_3.bracelet_7.onPress = function()
{
releaseAll();
curBracelet = 7;
getBracelet();
};
bracelet_set_4.bracelet_8.onPress = function()
{
releaseAll();
curBracelet = 8;
getBracelet();
};
bracelet_set_4.bracelet_9.onPress = function()
{
releaseAll();
curBracelet = 9;
getBracelet();
};
bracelet_set_5.bracelet_10.onPress = function()
{
releaseAll();
curBracelet = 10;
getBracelet();
};
bracelet_set_5.bracelet_11.onPress = function()
{
releaseAll();
curBracelet = 11;
getBracelet();
};
bracelet_set_6.bracelet_12.onPress = function()
{
releaseAll();
curBracelet = 12;
getBracelet();
};
bracelet_set_6.bracelet_13.onPress = function()
{
releaseAll();
curBracelet = 13;
getBracelet();
};
roll.onPress = function()
{
if(mcBottle_Popup._visible == true)
{
return undefined;
}
if(mcBrush != null || mcBrushMix != null)
{
releaseAll();
}
cur_Sound = new Sound();
cur_Sound.attachSound("slider.mp3");
cur_Sound.start();
stickers_roll.gotoAndPlay(2);
levelCounter++;
stickers_roll.swapDepths(levelCounter);
};
stickers_roll.stickers_0.onPress = function()
{
releaseAll();
curSticker = 0;
getSticker();
};
stickers_roll.stickers_1.onPress = function()
{
releaseAll();
curSticker = 1;
getSticker();
};
stickers_roll.stickers_2.onPress = function()
{
releaseAll();
curSticker = 2;
getSticker();
};
stickers_roll.stickers_3.onPress = function()
{
releaseAll();
curSticker = 3;
getSticker();
};
stickers_roll.stickers_4.onPress = function()
{
releaseAll();
curSticker = 4;
getSticker();
};
stickers_roll.stickers_5.onPress = function()
{
releaseAll();
curSticker = 5;
getSticker();
};
stickers_roll.stickers_6.onPress = function()
{
releaseAll();
curSticker = 6;
getSticker();
};
stickers_roll.stickers_7.onPress = function()
{
releaseAll();
curSticker = 7;
getSticker();
};
stickers_roll.stickers_8.onPress = function()
{
releaseAll();
curSticker = 8;
getSticker();
};
stickers_roll.stickers_9.onPress = function()
{
releaseAll();
curSticker = 9;
getSticker();
};
stickers_roll.stickers_10.onPress = function()
{
releaseAll();
curSticker = 10;
getSticker();
};
stickers_roll.stickers_11.onPress = function()
{
releaseAll();
curSticker = 11;
getSticker();
};
var anim = setInterval(animateSparkleJewellery,5000);
ring_set_0.ring_0.onPress = function()
{
releaseAll();
curRing = 0;
getRing();
};
ring_set_0.ring_1.onPress = function()
{
releaseAll();
curRing = 1;
getRing();
};
ring_set_0.ring_2.onPress = function()
{
releaseAll();
curRing = 2;
getRing();
};
ring_set_1.ring_3.onPress = function()
{
releaseAll();
curRing = 3;
getRing();
};
ring_set_1.ring_4.onPress = function()
{
releaseAll();
curRing = 4;
getRing();
};
ring_set_1.ring_5.onPress = function()
{
releaseAll();
curRing = 5;
getRing();
};
ring_set_2.ring_6.onPress = function()
{
releaseAll();
curRing = 6;
getRing();
};
ring_set_2.ring_7.onPress = function()
{
releaseAll();
curRing = 7;
getRing();
};
ring_set_2.ring_8.onPress = function()
{
releaseAll();
curRing = 8;
getRing();
};
ring_set_3.ring_9.onPress = function()
{
releaseAll();
curRing = 9;
getRing();
};
ring_set_3.ring_10.onPress = function()
{
releaseAll();
curRing = 10;
getRing();
};
ring_set_3.ring_11.onPress = function()
{
releaseAll();
curRing = 11;
getRing();
};
ring_set_4.ring_12.onPress = function()
{
releaseAll();
curRing = 12;
getRing();
};
ring_set_4.ring_13.onPress = function()
{
releaseAll();
curRing = 13;
getRing();
};
ring_set_4.ring_14.onPress = function()
{
releaseAll();
curRing = 14;
getRing();
};
ring_set_5.ring_15.onPress = function()
{
releaseAll();
curRing = 15;
getRing();
};
ring_set_5.ring_16.onPress = function()
{
releaseAll();
curRing = 16;
getRing();
};
ring_set_5.ring_17.onPress = function()
{
releaseAll();
curRing = 17;
getRing();
};
slider.onRollOver = function()
{
this.gotoAndStop(2);
};
slider.onRollOut = function()
{
this.gotoAndStop(1);
};
slider.onPress = function()
{
if(mcBottle_Popup._visible == true)
{
return undefined;
}
releaseAll();
this.startDrag(false,360,450,430,450);
};
slider.onRelease = function()
{
if(mcBottle_Popup._visible != true)
{
this.stopDrag();
var _loc1_ = this._x;
var _loc2_ = 0;
cur_Sound = new Sound();
cur_Sound.attachSound("slider.mp3");
cur_Sound.start();
if(_loc1_ > 360 && _loc1_ < 378)
{
_loc2_ = 0;
}
else if(_loc1_ > 378 && _loc1_ < 396)
{
_loc2_ = 1;
}
else if(_loc1_ > 396 && _loc1_ < 414)
{
_loc2_ = 2;
}
else if(_loc1_ > 414)
{
_loc2_ = 3;
}
if(_loc2_ != nailShape)
{
nailShape = _loc2_;
handleNailShapeChange();
}
}
};
recycle_bin.onRollOver = function()
{
this.gotoAndStop(2);
if(mcBracelet != null)
{
mcBracelet.removeMovieClip();
}
if(mcRing != null)
{
mcRing.removeMovieClip();
}
};
recycle_bin.onRollOut = function()
{
this.gotoAndStop(1);
};
done.onPress = function()
{
var _loc1_ = _root;
if(premium == 0)
{
showRegistrationDialog();
}
else if(mcBottle_Popup._visible != true)
{
releaseAll();
i = 0;
while(i < 10)
{
if(stickers[i] != -1)
{
_loc1_["s_" + i].removeMovieClip();
}
if(nailObjects[i] != null)
{
nailObjects[i].removeMovieClip();
}
if(nailObjectsDouble[i] != null)
{
nailObjectsDouble[i].removeMovieClip();
}
if(contourObjects[i] != null)
{
contourObjects[i].removeMovieClip();
}
if(highlightObjects[i] != null)
{
highlightObjects[i].removeMovieClip();
}
if(tipObjects[i] != null)
{
tipObjects[i].removeMovieClip();
}
i++;
}
i = 0;
while(i < ringNames.length)
{
_loc1_[ringNames[i]].removeMovieClip();
i++;
}
i = 0;
while(i < 2)
{
if(bracelets[i] != -1)
{
var _loc2_ = bracelets[i];
_loc1_[_loc2_].removeMovieClip();
}
i++;
}
var i = 0;
while(i < customBracelet.length)
{
customBraceletObjects[i]._visible = false;
i++;
}
if(new_label != null)
{
new_label._visible = false;
}
ring_set_1._visible = false;
ring_set_2._visible = false;
ring_set_3._visible = false;
ring_set_4._visible = false;
ring_set_5._visible = false;
bracelet_set_1._visible = false;
bracelet_set_2._visible = false;
bracelet_set_3._visible = false;
bracelet_set_4._visible = false;
bracelet_set_5._visible = false;
bracelet_set_6._visible = false;
stickers_roll._visible = false;
var i = 0;
while(i < nPolishes)
{
the_group = "polish_" + i;
if(_loc1_[the_group] != null)
{
_loc1_[the_group]._visible = false;
}
i++;
}
real_empty_bottle._visible = false;
cap._visible = false;
if(_loc1_.bottle_small != null)
{
_loc1_.bottle_small._visible = false;
}
if(_loc1_.bottleBG_small != null)
{
_loc1_.bottleBG_small.removeMovieClip();
}
if(_loc1_.small_p != null)
{
_loc1_.small_p.removeMovieClip();
}
if(_loc1_.bottle_small != null)
{
_loc1_.bottle_small.removeMovieClip();
}
gotoAndStop("done");
}
};
var customBracelet = new Array();
var customBraceletCoordinates = new Array();
var customBeads = new Array();
var customBeadsCoordinates = new Array();
var customBraceletObjects = new Array();
var curBead = -1;
var chosenBracelet = null;
var beadNames = new Array();
var beadSetCounter = 0;
var beadsCounter = 0;
var braceletsCounter = 0;
var braceletSetCounter = 0;
var customBracelet_tmp;
var customBraceletCoordinates_tmp;
var customBeads_tmp;
var customBeadsCoordinates_tmp;
var defaultbraceletCoordinates = new Array(345,338);
var createdBracelet = null;
bracelets_popup.clear_bracelets.onPress = function()
{
cur_Sound = new Sound();
cur_Sound.attachSound("buttons.mp3");
cur_Sound.start();
clearAllCustomBracelets();
};
bracelets_popup.bracelets_bg.onPress = function()
{
releaseAll_Frame3();
};
bracelets_popup.ok_bracelets.onPress = function()
{
var _loc3_ = _root;
cur_Sound = new Sound();
cur_Sound.attachSound("buttons.mp3");
cur_Sound.start();
if(createdBracelet != null)
{
createdBracelet.removeMovieClip();
}
releaseAll_Frame3();
var brX;
var brY;
levelCounter++;
levelCounter++;
if(customBracelet_tmp != -1)
{
_loc3_.attachMovie("custom_bracelet_" + customBracelet_tmp,"realBracelet_" + levelCounter + "_" + customBracelet_tmp,levelCounter,{_x:50,_y:320});
}
else
{
_loc3_.createEmptyMovieClip("realBracelet_" + levelCounter + "_" + customBracelet_tmp,levelCounter);
_loc3_["realBracelet_" + levelCounter + "_" + customBracelet_tmp]._x = 50;
_loc3_["realBracelet_" + levelCounter + "_" + customBracelet_tmp]._y = 320;
customBraceletCoordinates_tmp[0] = defaultbraceletCoordinates[0];
customBraceletCoordinates_tmp[1] = defaultbraceletCoordinates[1];
}
createdBracelet = _loc3_["realBracelet_" + levelCounter + "_" + customBracelet_tmp];
createdBracelet._visible = false;
createdBracelet.onPress = function()
{
var _loc1_ = this;
releaseAll();
customBraceletClicked = true;
numberPos = _loc1_._name.lastIndexOf("_");
curBracelet = _loc1_._name.substring(numberPos + Number(1),_loc1_._name.length);
getBracelet();
};
var _loc1_ = 0;
while(_loc1_ < customBeads_tmp.length)
{
curX = Number(customBeadsCoordinates_tmp[_loc1_][0] - customBraceletCoordinates_tmp[0]);
curY = Number(customBeadsCoordinates_tmp[_loc1_][1] - customBraceletCoordinates_tmp[1]);
levelCounter++;
createdBracelet.attachMovie("bead_" + customBeads_tmp[_loc1_],"b2Print_" + levelCounter,levelCounter,{_x:curX,_y:curY});
_loc1_ = _loc1_ + 1;
}
customBraceletObjects.push(createdBracelet);
if(customBracelet_tmp != -1 || customBeads_tmp.length != 0)
{
levelCounter++;
_loc3_.attachMovie("new_label","new_label",levelCounter,{_x:43,_y:292});
}
_loc1_ = 0;
while(_loc1_ < beadNames.length)
{
var _loc2_ = _loc3_[beadNames[_loc1_]];
_loc2_.removeMovieClip();
_loc1_ = _loc1_ + 1;
}
chosenBracelet.removeMovieClip();
customBracelet.push(customBracelet_tmp);
customBraceletCoordinates.push(customBraceletCoordinates_tmp);
customBeads.push(customBeads_tmp);
customBeadsCoordinates.push(customBeadsCoordinates_tmp);
stab_screen._visible = false;
bracelets_popup._visible = false;
curCustomBracelet2Show = Number(customBracelet.length) - Number(1);
curBraceletSet = nBraceletSets;
showCustomBracelet();
};
bracelets_popup.recycle_bin.onRollOver = function()
{
this.gotoAndStop(2);
if(mcBracelet != null)
{
mcBracelet.removeMovieClip();
}
if(mcBead != null)
{
mcBead.removeMovieClip();
}
};
bracelets_popup.recycle_bin.onRollOut = function()
{
this.gotoAndStop(1);
};
bracelets_popup.bracelet_place.onPress = function()
{
var _loc2_ = this;
var _loc3_ = _root;
if(mcBead != null)
{
handleAddingBead();
}
else if(mcBracelet != null)
{
if(chosenBracelet != null)
{
chosenBracelet.removeMovieClip();
}
levelCounter++;
_loc3_.attachMovie("custom_bracelet_" + customBracelet_tmp,"theBracelet_" + braceletsCounter,levelCounter,{_x:defaultbraceletCoordinates[0],_y:defaultbraceletCoordinates[1]});
chosenBracelet = _loc3_["theBracelet_" + braceletsCounter];
customBraceletCoordinates_tmp[0] = defaultbraceletCoordinates[0];
customBraceletCoordinates_tmp[1] = defaultbraceletCoordinates[1];
releaseBracelet();
_loc3_["theBracelet_" + braceletsCounter].onRelease = function()
{
var _loc1_ = this;
_loc1_.stopDrag();
if(_loc1_.hitTest(bracelets_popup.recycle_bin))
{
_loc1_.removeMovieClip();
customBracelet_tmp = -1;
chosenBracelet = null;
customBraceletCoordinates_tmp[0] = -1;
customBraceletCoordinates_tmp[1] = -1;
cur_Sound = new Sound();
cur_Sound.attachSound("trash.mp3");
cur_Sound.start();
}
else
{
customBraceletCoordinates_tmp[0] = _loc1_._x;
customBraceletCoordinates_tmp[1] = _loc1_._y;
}
};
_loc3_["theBracelet_" + braceletsCounter].onPress = function()
{
var _loc2_ = this;
var _loc3_ = _root;
if(mcBracelet != null)
{
if(chosenBracelet != null)
{
chosenBracelet.removeMovieClip();
}
}
if(mcBead != null)
{
levelCounter++;
curX = Number(_loc3_._xmouse - mcBead._width / 2);
curY = Number(_loc3_._ymouse - mcBead._height / 2);
_loc3_.attachMovie("bead_" + curBead,"bead_" + beadsCounter,levelCounter,{_x:curX,_y:curY});
customBeads_tmp.push(curBead);
beadNames.push("bead_" + beadsCounter);
var tmpCoordinates = new Array(curX,curY);
customBeadsCoordinates_tmp.push(tmpCoordinates);
releaseBead();
_loc3_["bead_" + beadsCounter].onRelease = function()
{
var _loc2_ = this;
_loc2_.stopDrag();
if(_loc2_.hitTest(bracelets_popup.recycle_bin))
{
var _loc1_ = 0;
while(_loc1_ < beadNames.length)
{
if(_loc2_._name == beadNames[_loc1_])
{
customBeads_tmp.splice(_loc1_,1);
beadNames.splice(_loc1_,1);
customBeadsCoordinates_tmp.splice(_loc1_,1);
cur_Sound = new Sound();
cur_Sound.attachSound("trash.mp3");
cur_Sound.start();
break;
}
_loc1_ = _loc1_ + 1;
}
_loc2_.removeMovieClip();
curBead = -1;
}
else
{
_loc1_ = 0;
while(_loc1_ < beadNames.length)
{
if(_loc2_._name == beadNames[_loc1_])
{
customBeadsCoordinates_tmp[_loc1_][0] = _loc2_._x;
customBeadsCoordinates_tmp[_loc1_][1] = _loc2_._y;
break;
}
_loc1_ = _loc1_ + 1;
}
}
};
_loc3_["bead_" + beadsCounter].onPress = function()
{
if(mcBead == null)
{
this.startDrag(false);
}
else
{
handleAddingBead();
}
};
beadsCounter++;
}
else
{
_loc2_.startDrag(false);
}
};
braceletsCounter++;
}
};
bracelets_popup.custom_bracelet_set_1.custom_bracelet_0.onPress = function()
{
getCustomBracelet(0);
};
bracelets_popup.custom_bracelet_set_1.custom_bracelet_1.onPress = function()
{
getCustomBracelet(1);
};
bracelets_popup.custom_bracelet_set_1.custom_bracelet_2.onPress = function()
{
getCustomBracelet(2);
};
bracelets_popup.custom_bracelet_set_1.custom_bracelet_3.onPress = function()
{
getCustomBracelet(3);
};
bracelets_popup.custom_bracelet_set_1.custom_bracelet_4.onPress = function()
{
getCustomBracelet(4);
};
bracelets_popup.custom_bracelet_set_1.custom_bracelet_5.onPress = function()
{
getCustomBracelet(5);
};
bracelets_popup.custom_bracelet_set_1.custom_bracelet_6.onPress = function()
{
getCustomBracelet(6);
};
bracelets_popup.custom_bracelet_set_0.custom_bracelet_7.onPress = function()
{
getCustomBracelet(7);
};
bracelets_popup.custom_bracelet_set_0.custom_bracelet_8.onPress = function()
{
getCustomBracelet(8);
};
bracelets_popup.custom_bracelet_set_0.custom_bracelet_9.onPress = function()
{
getCustomBracelet(9);
};
bracelets_popup.custom_bracelet_set_0.custom_bracelet_10.onPress = function()
{
getCustomBracelet(10);
};
bracelets_popup.custom_bracelet_set_0.custom_bracelet_11.onPress = function()
{
getCustomBracelet(11);
};
bracelets_popup.custom_bracelet_set_0.custom_bracelet_12.onPress = function()
{
getCustomBracelet(12);
};
bracelets_popup.custom_bracelet_set_0.custom_bracelet_13.onPress = function()
{
getCustomBracelet(13);
};
bracelets_popup.custom_bracelet_set_0.custom_bracelet_14.onPress = function()
{
getCustomBracelet(14);
};
bracelets_popup.custom_bracelet_set_0.custom_bracelet_15.onPress = function()
{
getCustomBracelet(15);
};
bracelets_popup.custom_bracelet_set_0.custom_bracelet_16.onPress = function()
{
getCustomBracelet(16);
};
bracelets_popup.custom_bracelet_set_0.custom_bracelet_17.onPress = function()
{
getCustomBracelet(17);
};
bracelets_popup.custom_bracelet_set_0.custom_bracelet_18.onPress = function()
{
getCustomBracelet(18);
};
bracelets_popup.more_custom_bracelets.onPress = function()
{
if(braceletSetCounter == 0)
{
bracelets_popup.custom_bracelet_set_0._visible = false;
bracelets_popup.custom_bracelet_set_1._visible = true;
braceletSetCounter = 1;
}
else
{
bracelets_popup.custom_bracelet_set_1._visible = false;
bracelets_popup.custom_bracelet_set_0._visible = true;
braceletSetCounter = 0;
}
cur_Sound = new Sound();
cur_Sound.attachSound("buttons.mp3");
cur_Sound.start();
};
bracelets_popup.more_beads.onPress = function()
{
if(beadSetCounter == 0)
{
bracelets_popup.bead_set_0._visible = false;
bracelets_popup.bead_set_1._visible = true;
beadSetCounter = 1;
}
else
{
bracelets_popup.bead_set_1._visible = false;
bracelets_popup.bead_set_0._visible = true;
beadSetCounter = 0;
}
cur_Sound = new Sound();
cur_Sound.attachSound("buttons.mp3");
cur_Sound.start();
};
bracelets_popup.bead_set_1.bead_0.onPress = function()
{
getABead(0);
};
bracelets_popup.bead_set_1.bead_1.onPress = function()
{
getABead(1);
};
bracelets_popup.bead_set_1.bead_2.onPress = function()
{
getABead(2);
};
bracelets_popup.bead_set_1.bead_2.onPress = function()
{
getABead(2);
};
bracelets_popup.bead_set_1.bead_3.onPress = function()
{
getABead(3);
};
bracelets_popup.bead_set_1.bead_4.onPress = function()
{
getABead(4);
};
bracelets_popup.bead_set_1.bead_5.onPress = function()
{
getABead(5);
};
bracelets_popup.bead_set_1.bead_6.onPress = function()
{
getABead(6);
};
bracelets_popup.bead_set_1.bead_7.onPress = function()
{
getABead(7);
};
bracelets_popup.bead_set_1.bead_8.onPress = function()
{
getABead(8);
};
bracelets_popup.bead_set_1.bead_9.onPress = function()
{
getABead(9);
};
bracelets_popup.bead_set_1.bead_10.onPress = function()
{
getABead(10);
};
bracelets_popup.bead_set_1.bead_11.onPress = function()
{
getABead(11);
};
bracelets_popup.bead_set_1.bead_12.onPress = function()
{
getABead(12);
};
bracelets_popup.bead_set_1.bead_13.onPress = function()
{
getABead(13);
};
bracelets_popup.bead_set_1.bead_14.onPress = function()
{
getABead(14);
};
bracelets_popup.bead_set_1.bead_15.onPress = function()
{
getABead(15);
};
bracelets_popup.bead_set_1.bead_16.onPress = function()
{
getABead(16);
};
bracelets_popup.bead_set_1.bead_17.onPress = function()
{
getABead(17);
};
bracelets_popup.bead_set_1.bead_18.onPress = function()
{
getABead(18);
};
bracelets_popup.bead_set_1.bead_19.onPress = function()
{
getABead(19);
};
bracelets_popup.bead_set_1.bead_20.onPress = function()
{
getABead(20);
};
bracelets_popup.bead_set_1.bead_21.onPress = function()
{
getABead(21);
};
bracelets_popup.bead_set_1.bead_22.onPress = function()
{
getABead(22);
};
bracelets_popup.bead_set_1.bead_23.onPress = function()
{
getABead(23);
};
bracelets_popup.bead_set_1.bead_24.onPress = function()
{
getABead(24);
};
bracelets_popup.bead_set_1.bead_25.onPress = function()
{
getABead(25);
};
bracelets_popup.bead_set_1.bead_26.onPress = function()
{
getABead(26);
};
bracelets_popup.bead_set_1.bead_27.onPress = function()
{
getABead(27);
};
bracelets_popup.bead_set_1.bead_28.onPress = function()
{
getABead(28);
};
bracelets_popup.bead_set_1.bead_29.onPress = function()
{
getABead(29);
};
bracelets_popup.bead_set_1.bead_30.onPress = function()
{
getABead(30);
};
bracelets_popup.bead_set_1.bead_31.onPress = function()
{
getABead(31);
};
bracelets_popup.bead_set_1.bead_32.onPress = function()
{
getABead(32);
};
bracelets_popup.bead_set_1.bead_33.onPress = function()
{
getABead(33);
};
bracelets_popup.bead_set_1.bead_34.onPress = function()
{
getABead(34);
};
bracelets_popup.bead_set_1.bead_35.onPress = function()
{
getABead(35);
};
bracelets_popup.bead_set_1.bead_36.onPress = function()
{
getABead(36);
};
bracelets_popup.bead_set_1.bead_37.onPress = function()
{
getABead(37);
};
bracelets_popup.bead_set_1.bead_38.onPress = function()
{
getABead(38);
};
bracelets_popup.bead_set_1.bead_39.onPress = function()
{
getABead(39);
};
bracelets_popup.bead_set_1.bead_40.onPress = function()
{
getABead(40);
};
bracelets_popup.bead_set_1.bead_41.onPress = function()
{
getABead(41);
};
bracelets_popup.bead_set_1.bead_42.onPress = function()
{
getABead(42);
};
bracelets_popup.bead_set_1.bead_43.onPress = function()
{
getABead(43);
};
bracelets_popup.bead_set_1.bead_44.onPress = function()
{
getABead(44);
};
bracelets_popup.bead_set_1.bead_45.onPress = function()
{
getABead(45);
};
bracelets_popup.bead_set_1.bead_46.onPress = function()
{
getABead(46);
};
bracelets_popup.bead_set_1.bead_47.onPress = function()
{
getABead(47);
};
bracelets_popup.bead_set_1.bead_48.onPress = function()
{
getABead(48);
};
bracelets_popup.bead_set_1.bead_49.onPress = function()
{
getABead(49);
};
bracelets_popup.bead_set_1.bead_50.onPress = function()
{
getABead(50);
};
bracelets_popup.bead_set_1.bead_51.onPress = function()
{
getABead(51);
};
bracelets_popup.bead_set_1.bead_52.onPress = function()
{
getABead(52);
};
bracelets_popup.bead_set_1.bead_53.onPress = function()
{
getABead(53);
};
bracelets_popup.bead_set_1.bead_54.onPress = function()
{
getABead(54);
};
bracelets_popup.bead_set_1.bead_55.onPress = function()
{
getABead(55);
};
bracelets_popup.bead_set_1.bead_56.onPress = function()
{
getABead(56);
};
bracelets_popup.bead_set_1.bead_57.onPress = function()
{
getABead(57);
};
bracelets_popup.bead_set_1.bead_58.onPress = function()
{
getABead(58);
};
bracelets_popup.bead_set_1.bead_59.onPress = function()
{
getABead(59);
};
bracelets_popup.bead_set_1.bead_60.onPress = function()
{
getABead(60);
};
bracelets_popup.bead_set_0.bead_61.onPress = function()
{
getABead(61);
};
bracelets_popup.bead_set_0.bead_62.onPress = function()
{
getABead(62);
};
bracelets_popup.bead_set_0.bead_63.onPress = function()
{
getABead(63);
};
bracelets_popup.bead_set_0.bead_64.onPress = function()
{
getABead(64);
};
bracelets_popup.bead_set_0.bead_65.onPress = function()
{
getABead(65);
};
bracelets_popup.bead_set_0.bead_66.onPress = function()
{
getABead(66);
};
bracelets_popup.bead_set_0.bead_67.onPress = function()
{
getABead(67);
};
bracelets_popup.bead_set_0.bead_68.onPress = function()
{
getABead(68);
};
bracelets_popup.bead_set_0.bead_69.onPress = function()
{
getABead(69);
};
bracelets_popup.bead_set_0.bead_70.onPress = function()
{
getABead(70);
};
bracelets_popup.bead_set_0.bead_71.onPress = function()
{
getABead(71);
};
bracelets_popup.bead_set_0.bead_72.onPress = function()
{
getABead(72);
};
bracelets_popup.bead_set_0.bead_73.onPress = function()
{
getABead(73);
};
bracelets_popup.bead_set_0.bead_74.onPress = function()
{
getABead(74);
};
bracelets_popup.bead_set_0.bead_75.onPress = function()
{
getABead(75);
};
bracelets_popup.bead_set_0.bead_76.onPress = function()
{
getABead(76);
};
bracelets_popup.bead_set_0.bead_77.onPress = function()
{
getABead(77);
};
bracelets_popup.bead_set_0.bead_78.onPress = function()
{
getABead(78);
};
bracelets_popup.bead_set_0.bead_79.onPress = function()
{
getABead(79);
};
bracelets_popup.bead_set_0.bead_80.onPress = function()
{
getABead(80);
};
bracelets_popup.bead_set_0.bead_81.onPress = function()
{
getABead(81);
};
bracelets_popup.bead_set_0.bead_82.onPress = function()
{
getABead(82);
};
bracelets_popup.bead_set_0.bead_83.onPress = function()
{
getABead(83);
};
bracelets_popup.bead_set_0.bead_84.onPress = function()
{
getABead(84);
};
bracelets_popup.bead_set_0.bead_85.onPress = function()
{
getABead(85);
};
bracelets_popup.bead_set_0.bead_86.onPress = function()
{
getABead(86);
};
bracelets_popup.bead_set_0.bead_87.onPress = function()
{
getABead(87);
};
bracelets_popup.bead_set_0.bead_88.onPress = function()
{
getABead(88);
};
bracelets_popup.bead_set_0.bead_89.onPress = function()
{
getABead(89);
};
bracelets_popup.bead_set_0.bead_90.onPress = function()
{
getABead(90);
};
bracelets_popup.bead_set_0.bead_91.onPress = function()
{
getABead(91);
};
bracelets_popup.bead_set_0.bead_92.onPress = function()
{
getABead(92);
};
bracelets_popup.bead_set_0.bead_93.onPress = function()
{
getABead(93);
};
bracelets_popup.bead_set_0.bead_94.onPress = function()
{
getABead(94);
};
bracelets_popup.bead_set_0.bead_95.onPress = function()
{
getABead(95);
};
bracelets_popup.bead_set_0.bead_96.onPress = function()
{
getABead(96);
};
bracelets_popup.bead_set_0.bead_97.onPress = function()
{
getABead(97);
};
bracelets_popup.bead_set_0.bead_98.onPress = function()
{
getABead(98);
};
bracelets_popup.bead_set_0.bead_99.onPress = function()
{
getABead(99);
};
bracelets_popup.bead_set_0.bead_100.onPress = function()
{
getABead(100);
};
bracelets_popup.bead_set_0.bead_101.onPress = function()
{
getABead(101);
};
bracelets_popup.bead_set_0.bead_102.onPress = function()
{
getABead(102);
};
bracelets_popup.bead_set_0.bead_103.onPress = function()
{
getABead(103);
};
bracelets_popup.bead_set_0.bead_104.onPress = function()
{
getABead(104);
};
bracelets_popup.bead_set_0.bead_105.onPress = function()
{
getABead(105);
};
gs_symbol.onPress = function()
{
getUrl("http://www.girlsense.com/premium/", "_blank");
};
gs_title_1.onPress = function()
{
getUrl("http://www.girlsense.com/premium/", "_blank");
};